PhoenixFileParser  1.5.1
Set of tools to ease file parsing
Loading...
Searching...
No Matches
ConfigCheck.h
Go to the documentation of this file.
1/***************************************
2 Auteur : Pierre Aubert
3 Mail : pierre.aubert@lapp.in2p3.fr
4 Licence : CeCILL-C
5****************************************/
6
7#ifndef __CONFIG_CHECK_H__
8#define __CONFIG_CHECK_H__
9
10#include "configCheckValue.h"
11#include "GenericConfigCheck.h"
12
14template<typename T>
16 public:
17 ConfigCheckValue(const T* data, const T & minValue, bool isMinInclusive, const T & maxValue, bool isMaxInclusive);
18 virtual ~ConfigCheckValue();
19
20 virtual bool isOk(std::ostream & out) const;
21
22 private:
24 const T* p_data;
33
34};
35
36#include "ConfigCheck_impl.h"
37
38#endif
39
virtual bool isOk(std::ostream &out) const
Say if the check is OK or not.
bool p_isMinInclusive
true if the minimum boundary is inclusive
Definition ConfigCheck.h:28
ConfigCheckValue(const T *data, const T &minValue, bool isMinInclusive, const T &maxValue, bool isMaxInclusive)
Default constructor of the ConfigCheckValue.
virtual ~ConfigCheckValue()
Destructor of the ConfigCheckValue.
const T * p_data
value to be checked
Definition ConfigCheck.h:24
T p_maxValue
maximum value boundary
Definition ConfigCheck.h:30
T p_minValue
minimum value boundary
Definition ConfigCheck.h:26
bool p_isMaxInclusive
true if the maximum boundary is inclusive
Definition ConfigCheck.h:32
GenericConfigCheck()
Default constructor of GenericConfigCheck.