libcamgm
ValuePosixRECheck.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: ValuePosixRECheck.hpp
15 
16  Author: Marius Tomaschewski
17  Maintainer: Marius Tomaschewski
18 
19  Purpose:
20 
21 /-*/
26 #ifndef CA_MGM_VALUE_POSIX_REGEX_CHECK_HPP
27 #define CA_MGM_VALUE_POSIX_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/PosixRegEx.hpp>
35 
36 namespace CA_MGM_NAMESPACE
37 {
38 
39 // -------------------------------------------------------------------
47 {
48 public:
59  ValuePosixRECheck(const std::string &regex,
60  bool icase = false);
61 
70  virtual bool
71  isValid(const std::string &value) const;
72 
80  virtual std::string
81  explain(const std::string &value) const;
82 
83 private:
85 };
86 
87 } // End of CA_MGM_NAMESPACE
88 #endif // CA_MGM_VALUE_POSIX_REGEX_CHECK_HPP
89 // vim: set ts=8 sts=8 sw=8 ai noet:
PosixRegEx m_reg
Definition: ValuePosixRECheck.hpp:84
Definition: PosixRegEx.hpp:54
Posix regex value check.
Definition: ValuePosixRECheck.hpp:46
Utility classes to check a string value.
Base class to check a value.
Definition: ValueCheck.hpp:54