Inheritance:
Public Methods
-
CVariable(const CVariable* , const CDSLibComponent* = NULL)
- Copy-constructor.
-
~CVariable()
- Destructor
-
bool AcceptsContainer( const CDSLibComponent* Container for this component* / )
- If the argument is an instance of CBlock or any descendant class, sets the argument as the container and returns true.
-
unsigned int ArrayLength() const
- Returns the length of the array
-
virtual bool DescendantOf(const std::string &) const
- Returns if the argument is "CVariable" or the name of one of its base classes
-
const std::string ExternalIdentifier() const
- Identifier of the variable outside its block
-
bool IsArray() const
- Returns if the variable is an array
-
bool Read() const
- Returns if the variable can be read from outside the dynamic system
-
bool SetArrayLength( unsigned int )
- If the argument is 0 or 1, then the dynamic system variable is of simple type.
-
bool SetRead(bool)
- Sets if the variable con be read from outside the dynamic system
-
void SetType(const std::string &)
- Sets the type of the variable in the dynamic system
-
bool SetWrite(bool)
- Sets if the variable can be written from outside the dynamic system
-
virtual const std::string Type() const
- Returns the type of the variable in the dynamic system
-
virtual std::string Value( const std::string & Value of the "name" parameter of the template command* / ) const
- Returns a string to be inserted in the generated code instead of a <value > template command
-
bool Write() const
- Returns if the variable can be written from outside the dynamic system
Public Members
-
Base class for all the others that define variables that may be used in a dynamic system
Public Methods
-
virtual bool AddComponent(CDSLibComponent* pComponent)
-
bool AllArrange()
-
void AllGenerateCode(const std::string &strTemplatesPath, CCodeSection* pCodeSection) const
-
virtual bool AllRepeatedValue(const CDSLibComponent* pCaller, const std::string & strValueName, const std::string & strValue) const
-
void AllReportMessages(CMessages* pMessagesReport)
-
virtual std::string Class() const
-
virtual CDSLibComponent* Clone( const CDSLibComponent* pContainer = NULL) const
-
const CDSLibComponent* Component(const std::string & strIdentifier, const std::string & strClass) const
-
const CDSLibComponentPointers& Components() const
-
const CDSLibComponent* Container( const std::string & strClass = "", unsigned int uSkip = 0) const
-
void DeleteObjects()
-
const std::string& Identifier() const
-
int ComponentIndex() const
-
const CMessages& Messages() const
-
virtual bool RepeatedValue(const std::string &, const std::string &) const
-
bool SetIdentifier(const std::string & strIdentifier)
Protected Methods
-
virtual void AddMessage(unsigned int uNumber)
-
virtual void Arrange()
-
CDSLibComponentPointers& Components()
-
virtual void ComponentsGenerateCode(const std::string &strTemplatesPath, CCodeSection* pCodeSection) const
-
virtual void GenerateCode(const std::string & strTemplatesPath, CCodeSection* pCodeSection) const
-
std::string LongLongToString(long long llNumber) const
-
CMessages& Messages()
-
bool ParseTemplate(const std::string & strTemplatesPath, const std::string & strTemplate, CCodeSection* pOutputSection) const
-
void SetContainer(const CDSLibComponent* pContainer)
-
long long StringToLongLong(const std::string &strNumber) const
-
std::string DoubleToString(double dNumber) const
Documentation
Base class for all the others that define variables that may be used in a dynamic system
- Base class for all the others that define variables that may be used
in a dynamic system
CVariable(const CVariable* , const CDSLibComponent* = NULL)
- Copy-constructor. Copies all the attributes of CVariable and calls
the copy-constructor of CDSLibComponent
~CVariable()
- Destructor
bool AcceptsContainer( const CDSLibComponent* Container for this component* / )
- If the argument is an instance of CBlock or any descendant class,
sets the argument as the container and returns true. Otherwise, it
generates the message NON_SUITABLE_CONTAINER_ERROR and retun false
unsigned int ArrayLength() const
- Returns the length of the array
virtual bool DescendantOf(const std::string &) const
- Returns if the argument is "CVariable" or the name of one of
its base classes
const std::string ExternalIdentifier() const
- Identifier of the variable outside its block
bool IsArray() const
- Returns if the variable is an array
bool Read() const
- Returns if the variable can be read from outside the dynamic system
bool SetArrayLength( unsigned int )
- If the argument is 0 or 1, then the dynamic system variable is of
simple type. If it's 2 or more, then it will be an array of the type,
and the argument will be the length of the array
- Parameters:
- int - Array length
bool SetRead(bool)
- Sets if the variable con be read from outside the dynamic system
void SetType(const std::string &)
- Sets the type of the variable in the dynamic system
bool SetWrite(bool)
- Sets if the variable can be written from outside the dynamic system
virtual const std::string Type() const
- Returns the type of the variable in the dynamic system
virtual std::string Value( const std::string & Value of the "name" parameter of the template command* / ) const
- Returns a string to be inserted in the generated code instead of a
<value > template command
bool Write() const
- Returns if the variable can be written from outside the dynamic
system
- Direct child classes:
- COutput
CInput
CBlockVariable
- Author:
- Ivan Martinez
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.