PhoenixFileParser
1.7.3
Set of tools to ease file parsing
Toggle main menu visibility
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
14
template
<
typename
T>
15
class
ConfigCheckValue
:
public
GenericConfigCheck
{
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
;
26
T
p_minValue
;
28
bool
p_isMinInclusive
;
30
T
p_maxValue
;
32
bool
p_isMaxInclusive
;
33
34
};
35
36
#include "
ConfigCheck_impl.h
"
37
38
#endif
39
ConfigCheck_impl.h
GenericConfigCheck.h
ConfigCheckValue::isOk
virtual bool isOk(std::ostream &out) const
Say if the check is OK or not.
Definition
ConfigCheck_impl.h:34
ConfigCheckValue::p_isMinInclusive
bool p_isMinInclusive
true if the minimum boundary is inclusive
Definition
ConfigCheck.h:28
ConfigCheckValue::ConfigCheckValue
ConfigCheckValue(const T *data, const T &minValue, bool isMinInclusive, const T &maxValue, bool isMaxInclusive)
Default constructor of the ConfigCheckValue.
Definition
ConfigCheck_impl.h:21
ConfigCheckValue::~ConfigCheckValue
virtual ~ConfigCheckValue()
Destructor of the ConfigCheckValue.
Definition
ConfigCheck_impl.h:27
ConfigCheckValue::p_data
const T * p_data
value to be checked
Definition
ConfigCheck.h:24
ConfigCheckValue::p_maxValue
T p_maxValue
maximum value boundary
Definition
ConfigCheck.h:30
ConfigCheckValue::p_minValue
T p_minValue
minimum value boundary
Definition
ConfigCheck.h:26
ConfigCheckValue::p_isMaxInclusive
bool p_isMaxInclusive
true if the maximum boundary is inclusive
Definition
ConfigCheck.h:32
GenericConfigCheck::GenericConfigCheck
GenericConfigCheck()
Default constructor of GenericConfigCheck.
Definition
GenericConfigCheck.cpp:11
configCheckValue.h
src
ConfigCheck.h
Generated by
1.17.0