PhoenixFileParser  1.0.0
Set of tools to ease file parsing
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
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;
33};
34
37 public:
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
std::vector< PNestedStr > p_vecNestedStr
Vector of PNestedStr.
Definition PNestedCall.h:54
PString p_name
Name of the Variable.
Definition PNestedCall.h:52
void setName(const PString &name)
Sets the name of the PNestedCall.
PNestedCall & operator=(const PNestedCall &other)
Operator = of class PNestedCall.
void copyPNestedCall(const PNestedCall &other)
Copy Function of class PNestedCall.
virtual ~PNestedCall()
Destructor of class PNestedCall.
const PString & getName() const
Gets the name of the PNestedCall.
const std::vector< PNestedStr > & getVecNestedStr() const
Gets the vecNestedStr of the PNestedCall.
void setVecNestedStr(const std::vector< PNestedStr > &vecNestedStr)
Sets the vecNestedStr of the PNestedCall.
PNestedCall()
Constructor of class PNestedCall.
bool p_isVarCall
True if the PNestedStr calls a variable.
Definition PNestedCall.h:32
void setValue(const PString &value)
Sets the value of the PNestedStr.
PNestedStr()
Constructor of class PNestedStr.
bool getIsVarCall() const
Gets the isVarCall of the PNestedStr.
void copyPNestedStr(const PNestedStr &other)
Copy Function of class PNestedStr.
virtual ~PNestedStr()
Destructor of class PNestedStr.
void setIsVarCall(bool isVarCall)
Sets the isVarCall of the PNestedStr.
const PString & getValue() const
Gets the value of the PNestedStr.
PNestedStr & operator=(const PNestedStr &other)
Operator = of class PNestedStr.
PString p_value
String which can be a call to an other variable or a simple string.
Definition PNestedCall.h:30