PhoenixPresentation  2.0.0
Set of cmake function to automate presentation generation
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:
33 };
34 
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:
54  std::vector<PNestedStr> p_vecNestedStr;
55 };
56 
57 
58 
59 #endif
60 
Class used to parse nested call variables.
Definition: PNestedCall.h:36
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.
Definition: PNestedCall.cpp:99
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.
Definition: PNestedCall.cpp:87
Nested string or variable call.
Definition: PNestedCall.h:14
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.
Definition: PNestedCall.cpp:39
PNestedStr()
Constructor of class PNestedStr.
Definition: PNestedCall.cpp:11
bool getIsVarCall() const
Gets the isVarCall of the PNestedStr.
Definition: PNestedCall.cpp:67
void copyPNestedStr(const PNestedStr &other)
Copy Function of class PNestedStr.
Definition: PNestedCall.cpp:81
virtual ~PNestedStr()
Destructor of class PNestedStr.
Definition: PNestedCall.cpp:23
void setIsVarCall(bool isVarCall)
Sets the isVarCall of the PNestedStr.
Definition: PNestedCall.cpp:46
const PString & getValue() const
Gets the value of the PNestedStr.
Definition: PNestedCall.cpp:53
PNestedStr & operator=(const PNestedStr &other)
Operator = of class PNestedStr.
Definition: PNestedCall.cpp:31
PString p_value
String which can be a call to an other variable or a simple string.
Definition: PNestedCall.h:30
Extends the std::string.
Definition: PString.h:16