libcamgm
ValuePerlRECheck.hpp
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | |
3 | _ _ _ _ __ _ |
4 | | | | | | \_/ | / \ | | |
5 | | | | | | |_| | / /\ \ | | |
6 | | |__ | | | | | | / ____ \ | |__ |
7 | |____||_| |_| |_|/ / \ \|____| |
8 | |
9 | core library |
10 | |
11 | (C) SUSE Linux Products GmbH |
12 \----------------------------------------------------------------------/
13 
14  File: ValuePerlRECheck.hpp
15 
16  Author: Marius Tomaschewski
17  Maintainer: Marius Tomaschewski
18 
19  Purpose:
20 
21 /-*/
26 #ifndef CA_MGM_VALUE_PERL_REGEX_CHECK_HPP
27 #define CA_MGM_VALUE_PERL_REGEX_CHECK_HPP
28 
29 #include <ca-mgm/config.h>
30 #include <ca-mgm/ValueCheck.hpp>
31 
32 #include <ca-mgm/CommonData.hpp>
33 #include <ca-mgm/String.hpp>
34 #include <ca-mgm/PerlRegEx.hpp>
35 
36 namespace CA_MGM_NAMESPACE
37 {
38 
39 // -------------------------------------------------------------------
47 {
48 public:
61  ValuePerlRECheck(const std::string &regex,
62  bool icase = false,
63  bool utf8 = false);
64 
73  virtual bool
74  isValid(const std::string &value) const;
75 
83  virtual std::string
84  explain(const std::string &value) const;
85 
86 private:
88 };
89 
90 } // End of CA_MGM_NAMESPACE
91 #endif // CA_MGM_VALUE_PERL_REGEX_CHECK_HPP
92 // vim: set ts=8 sts=8 sw=8 ai noet:
Definition: PerlRegEx.hpp:55
Utility classes to check a string value.
PerlRegEx m_reg
Definition: ValuePerlRECheck.hpp:87
Perl regex value check.
Definition: ValuePerlRECheck.hpp:46
Base class to check a value.
Definition: ValueCheck.hpp:54