X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ntsimulator%2Fregxstring%2Fregxstring.h;fp=ntsimulator%2Fregxstring%2Fregxstring.h;h=7620e7940ef51e1cd73946310589f273ccfecec7;hb=f1d5c9198acde7a7ce296490087cad37e008f688;hp=0000000000000000000000000000000000000000;hpb=f2d8f1002fa93848c80a88e5658db4816cba3020;p=sim%2Fo1-interface.git diff --git a/ntsimulator/regxstring/regxstring.h b/ntsimulator/regxstring/regxstring.h new file mode 100644 index 0000000..7620e79 --- /dev/null +++ b/ntsimulator/regxstring/regxstring.h @@ -0,0 +1,45 @@ +/************************************************************************* +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +***************************************************************************/ + +#ifndef DOZERG_REGXSTRING_H_20091012 +#define DOZERG_REGXSTRING_H_20091012 + +namespace __DZ_Regx_String{ + class __CRegxString; +} + +struct Config +{ + static const int REPEAT_INFINITE = 3; + int repeatInfinite; + //functions: + Config():repeatInfinite(REPEAT_INFINITE){} +}; + +class CRegxString +{ + __DZ_Regx_String::__CRegxString * impl_; +public: + CRegxString():impl_(0){} + explicit CRegxString(const char * regx); + ~CRegxString(); + void ParseRegx(const char * regx,const Config * config = 0); + const char * Regx() const; + const char * RandString(); + const char * LastString() const; + void Debug(std::ostream & out) const; +}; + +#endif