PhoenixGenerator  2.0.0
Set of tools to generate code
PClassAttribute.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 __PCLASSATTRIBUTE_H__
8 #define __PCLASSATTRIBUTE_H__
9 
10 #include "PPath.h"
11 
14  public:
16  PClassAttribute(const PClassAttribute & other);
17  virtual ~PClassAttribute();
19  void setType(const PString & type);
20  void setName(const PString & name);
21  void setDefaultValue(const PString & defaultValue);
22  void setIsPointer(bool isPointer);
23  void setIsReference(bool isReference);
24  void setDocumentation(const PString & documentation);
25  void setIsEnum(bool isEnum);
26  const PString & getType() const;
27  PString & getType();
28  const PString & getName() const;
29  PString & getName();
30  const PString & getDefaultValue() const;
32  bool getIsPointer() const;
33  bool & getIsPointer();
34  bool getIsReference() const;
35  bool & getIsReference();
36  const PString & getDocumentation() const;
38  bool getIsEnum() const;
39  bool & getIsEnum();
40  protected:
41  void copyPClassAttribute(const PClassAttribute & other);
42  private:
57  bool p_isEnum;
58 };
59 
60 
61 
62 #endif
63 
Describes a class attribute.
PClassAttribute & operator=(const PClassAttribute &other)
Operator = of class PClassAttribute.
bool p_isPointer
true if is a pointer
const PString & getDocumentation() const
Gets the documentation of the PClassAttribute.
void setType(const PString &type)
Sets the type of the PClassAttribute.
PString p_defaultValue
Default value of the attribute.
PString p_documentation
Documentation string.
PClassAttribute()
Constructor of class PClassAttribute.
PString p_name
Name of the attribute.
virtual ~PClassAttribute()
Destructor of class PClassAttribute.
void setDefaultValue(const PString &defaultValue)
Sets the defaultValue of the PClassAttribute.
void setDocumentation(const PString &documentation)
Sets the documentation of the PClassAttribute.
void initialisationPClassAttribute()
Initialisation Function of class PClassAttribute.
void copyPClassAttribute(const PClassAttribute &other)
Copy Function of class PClassAttribute.
void setIsPointer(bool isPointer)
Sets the isPointer of the PClassAttribute.
PString p_type
Type of the attribute.
const PString & getDefaultValue() const
Gets the defaultValue of the PClassAttribute.
const PString & getType() const
Gets the type of the PClassAttribute.
void setName(const PString &name)
Sets the name of the PClassAttribute.
void setIsEnum(bool isEnum)
Sets the isEnum of the PClassAttribute.
bool getIsEnum() const
Gets the isEnum of the PClassAttribute.
const PString & getName() const
Gets the name of the PClassAttribute.
bool getIsReference() const
Gets the isReference of the PClassAttribute.
void setIsReference(bool isReference)
Sets the isReference of the PClassAttribute.
bool p_isEnum
True if the PClassAttribute is an enum.
bool p_isReference
True if it is a reference.
bool getIsPointer() const
Gets the isPointer of the PClassAttribute.
Extends the std::string.
Definition: PString.h:16