PhoenixFileParser
1.7.3
Set of tools to ease file parsing
Toggle main menu visibility
Loading...
Searching...
No Matches
PNestedCall.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 __PNESTEDCALL_H__
8
#define __PNESTEDCALL_H__
9
10
#include <vector>
11
#include "PString.h"
12
14
class
PNestedStr
{
15
public
:
16
PNestedStr
();
17
PNestedStr
(
const
PNestedStr
& other);
18
virtual
~PNestedStr
();
19
PNestedStr
&
operator =
(
const
PNestedStr
& other);
20
void
setValue
(
const
PString & value);
21
void
setIsVarCall
(
bool
isVarCall);
22
const
PString &
getValue
()
const
;
23
PString &
getValue
();
24
bool
getIsVarCall
()
const
;
25
bool
&
getIsVarCall
();
26
protected
:
27
void
copyPNestedStr
(
const
PNestedStr
& other);
28
private
:
30
PString
p_value
;
32
bool
p_isVarCall
;
33
};
34
36
class
PNestedCall
{
37
public
:
38
PNestedCall
();
39
PNestedCall
(
const
PNestedCall
& other);
40
virtual
~PNestedCall
();
41
PNestedCall
&
operator =
(
const
PNestedCall
& other);
42
void
setName
(
const
PString & name);
43
void
setVecNestedStr
(
const
std::vector<PNestedStr> & vecNestedStr);
44
const
PString &
getName
()
const
;
45
PString &
getName
();
46
const
std::vector<PNestedStr> &
getVecNestedStr
()
const
;
47
std::vector<PNestedStr> &
getVecNestedStr
();
48
protected
:
49
void
copyPNestedCall
(
const
PNestedCall
& other);
50
private
:
52
PString
p_name
;
54
std::vector<PNestedStr>
p_vecNestedStr
;
55
};
56
57
58
59
#endif
60
PNestedCall::p_vecNestedStr
std::vector< PNestedStr > p_vecNestedStr
Vector of PNestedStr.
Definition
PNestedCall.h:54
PNestedCall::p_name
PString p_name
Name of the Variable.
Definition
PNestedCall.h:52
PNestedCall::setName
void setName(const PString &name)
Sets the name of the PNestedCall.
Definition
PNestedCall.cpp:115
PNestedCall::operator=
PNestedCall & operator=(const PNestedCall &other)
Operator = of class PNestedCall.
Definition
PNestedCall.cpp:107
PNestedCall::copyPNestedCall
void copyPNestedCall(const PNestedCall &other)
Copy Function of class PNestedCall.
Definition
PNestedCall.cpp:157
PNestedCall::~PNestedCall
virtual ~PNestedCall()
Destructor of class PNestedCall.
Definition
PNestedCall.cpp:99
PNestedCall::getName
const PString & getName() const
Gets the name of the PNestedCall.
Definition
PNestedCall.cpp:129
PNestedCall::getVecNestedStr
const std::vector< PNestedStr > & getVecNestedStr() const
Gets the vecNestedStr of the PNestedCall.
Definition
PNestedCall.cpp:143
PNestedCall::setVecNestedStr
void setVecNestedStr(const std::vector< PNestedStr > &vecNestedStr)
Sets the vecNestedStr of the PNestedCall.
Definition
PNestedCall.cpp:122
PNestedCall::PNestedCall
PNestedCall()
Constructor of class PNestedCall.
Definition
PNestedCall.cpp:87
PNestedStr::p_isVarCall
bool p_isVarCall
True if the PNestedStr calls a variable.
Definition
PNestedCall.h:32
PNestedStr::setValue
void setValue(const PString &value)
Sets the value of the PNestedStr.
Definition
PNestedCall.cpp:39
PNestedStr::PNestedStr
PNestedStr()
Constructor of class PNestedStr.
Definition
PNestedCall.cpp:11
PNestedStr::getIsVarCall
bool getIsVarCall() const
Gets the isVarCall of the PNestedStr.
Definition
PNestedCall.cpp:67
PNestedStr::copyPNestedStr
void copyPNestedStr(const PNestedStr &other)
Copy Function of class PNestedStr.
Definition
PNestedCall.cpp:81
PNestedStr::~PNestedStr
virtual ~PNestedStr()
Destructor of class PNestedStr.
Definition
PNestedCall.cpp:23
PNestedStr::setIsVarCall
void setIsVarCall(bool isVarCall)
Sets the isVarCall of the PNestedStr.
Definition
PNestedCall.cpp:46
PNestedStr::getValue
const PString & getValue() const
Gets the value of the PNestedStr.
Definition
PNestedCall.cpp:53
PNestedStr::operator=
PNestedStr & operator=(const PNestedStr &other)
Operator = of class PNestedStr.
Definition
PNestedCall.cpp:31
PNestedStr::p_value
PString p_value
String which can be a call to an other variable or a simple string.
Definition
PNestedCall.h:30
src
PNestedCall.h
Generated by
1.17.0