class CBlockVariable

Class that defines block variables for blocks

Inheritance:


Public Methods

[more] CBlockVariable(const std::string & strIdentifier, const std::string & strType, unsigned int uiArrayLength = 0, bool bRead = false, bool bWrite = false)
Constructor.
[more] CBlockVariable(const CBlockVariable* pVariable, const CDSLibComponent* pContainer = NULL)
Copy-constructor.
[more] ~CBlockVariable()
Destructor
[more]virtual std::string Class() const
Returns "CBlockVariable"
[more]CBlockVariable* Clone(const CDSLibComponent* pContainer = NULL) const
Returns a new CBlockVariable object copied from this one using the copy-constructor above.
[more]virtual bool DescendantOf(const std::string & strClassName) const
Returns if the argument is "CBlockVariable" or the name of one of its base classes.
[more]virtual std::string Value(const std::string & strValueName) const
Returns a string to be inserted in the generated code instead of a <value > template command.

Protected Methods

[more]virtual void GenerateCode(const std::string & strTemplatesPath, CCodeSection* pCodeSection) const
Generates code for the section in the arguments, in this object and its contained objects.


Inherited from CVariable:

Public Methods

obool AcceptsContainer( const CDSLibComponent* Container for this component* / )
ounsigned int ArrayLength() const
oconst std::string ExternalIdentifier() const
obool IsArray() const
obool Read() const
obool SetArrayLength( unsigned int )
obool SetRead(bool)
ovoid SetType(const std::string &)
obool SetWrite(bool)
ovirtual const std::string Type() const
obool Write() const

Public Members

o Base class for all the others that define variables that may be used in a dynamic system


Inherited from CDSLibComponent:

Public Methods

ovirtual bool AddComponent(CDSLibComponent* pComponent)
obool AllArrange()
ovoid AllGenerateCode(const std::string &strTemplatesPath, CCodeSection* pCodeSection) const
ovirtual bool AllRepeatedValue(const CDSLibComponent* pCaller, const std::string & strValueName, const std::string & strValue) const
ovoid AllReportMessages(CMessages* pMessagesReport)
oconst CDSLibComponent* Component(const std::string & strIdentifier, const std::string & strClass) const
oconst CDSLibComponentPointers& Components() const
oconst CDSLibComponent* Container( const std::string & strClass = "", unsigned int uSkip = 0) const
ovoid DeleteObjects()
oconst std::string& Identifier() const
oint ComponentIndex() const
oconst CMessages& Messages() const
ovirtual bool RepeatedValue(const std::string &, const std::string &) const
obool SetIdentifier(const std::string & strIdentifier)

Protected Methods

ovirtual void AddMessage(unsigned int uNumber)
ovirtual void Arrange()
oCDSLibComponentPointers& Components()
ovirtual void ComponentsGenerateCode(const std::string &strTemplatesPath, CCodeSection* pCodeSection) const
ostd::string LongLongToString(long long llNumber) const
oCMessages& Messages()
obool ParseTemplate(const std::string & strTemplatesPath, const std::string & strTemplate, CCodeSection* pOutputSection) const
ovoid SetContainer(const CDSLibComponent* pContainer)
olong long StringToLongLong(const std::string &strNumber) const
ostd::string DoubleToString(double dNumber) const


Documentation

Class that defines block variables for blocks
o CBlockVariable(const std::string & strIdentifier, const std::string & strType, unsigned int uiArrayLength = 0, bool bRead = false, bool bWrite = false)
Constructor.
Parameters:
strIdentifier - Identifier for the block variable
strType - Type for the block variable
uiArrayLength - Array length for the block variable
bRead - Sets if the variable can be read from outside the dynamic system
bWrite - Sets if the variable can be written from outside the dynamic system

o CBlockVariable(const CBlockVariable* pVariable, const CDSLibComponent* pContainer = NULL)
Copy-constructor. Copies all the attributes of CBlockVariable (except the container) and calls the copy-constructor of CVariable.
Parameters:
pVariable - Object to copy from
pContainer - Container for this new object

o ~CBlockVariable()
Destructor

ovirtual std::string Class() const
Returns "CBlockVariable"

oCBlockVariable* Clone(const CDSLibComponent* pContainer = NULL) const
Returns a new CBlockVariable object copied from this one using the copy-constructor above.
Parameters:
pContainer - Container for the new object

ovirtual bool DescendantOf(const std::string & strClassName) const
Returns if the argument is "CBlockVariable" or the name of one of its base classes.
Parameters:
strClassName - Class name

ovirtual std::string Value(const std::string & strValueName) const
Returns a string to be inserted in the generated code instead of a <value > template command.
Parameters:
strValueName - "name" argument of the template command

ovirtual void GenerateCode(const std::string & strTemplatesPath, CCodeSection* pCodeSection) const
Generates code for the section in the arguments, in this object and its contained objects.
Parameters:
strTemplatesPath - Path to the template files to be parsed
pCodeSection - Code section to be generated. It must already point to a CCodeSection object, which may be modified by adding new sections and lines to it


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.