cpatternmatcher.h

00001 //==========================================================================
00002 //  CPATTERNMATCHER.H - part of
00003 //                     OMNeT++/OMNEST
00004 //             Discrete System Simulation in C++
00005 //
00006 //  Author: Andras Varga
00007 //
00008 //==========================================================================
00009 
00010 /*--------------------------------------------------------------*
00011   Copyright (C) 2006-2008 OpenSim Ltd.
00012 
00013   This file is distributed WITHOUT ANY WARRANTY. See the file
00014   `license' for details on this and other legal matters.
00015 *--------------------------------------------------------------*/
00016 
00017 #ifndef __CPATTERNMATCHER_H
00018 #define __CPATTERNMATCHER_H
00019 
00020 #include <stdio.h>
00021 #include <string>
00022 #include <vector>
00023 #include "simkerneldefs.h"
00024 
00025 NAMESPACE_BEGIN
00026 
00027 class PatternMatcher;
00028 
00075 class SIM_API cPatternMatcher
00076 {
00077   private:
00078     PatternMatcher *impl;
00079 
00080   public:
00084     cPatternMatcher();
00085 
00089     cPatternMatcher(const char *pattern, bool dottedpath, bool fullstring, bool casesensitive);
00090 
00094     ~cPatternMatcher();
00095 
00101     void setPattern(const char *pattern, bool dottedpath, bool fullstring, bool casesensitive);
00102 
00107     bool matches(const char *line);
00108 
00129     const char *patternPrefixMatches(const char *line, int suffixoffset);
00130 
00135     std::string debugStr();
00136 
00141     void dump();
00142 
00148     static bool containsWildcards(const char *pattern);
00149 
00150 };
00151 
00152 NAMESPACE_END
00153 
00154 #endif
00155 
00156 
Generated on Tue Dec 2 11:16:27 2014 for OMNeT++ Simulation Library by  doxygen 1.6.3