class CSuperBlock


Inheritance:


Public Methods

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

Public Members

[more] Block whose operation is defined by its contained blocks

Protected Methods

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


Inherited from CBlock:

Public Methods

ovirtual bool AcceptsContainer(const CDSLibComponent* pContainer)
ovirtual bool AddComponent(CDSLibComponent* pComponent)
oCBlockVariable* BlockVariable(const std::string & strIdentifier) const
oCBlockVariable* BlockVariable(unsigned int uIndex) const
ovirtual const std::string GlobalIdentifier() const
oCInput* Input(const std::string & strName) const
oCInput* Input(unsigned int uIndex) const
ovirtual unsigned int NumberOfBlockVariables() const
ovirtual unsigned int NumberOfInputs() const
ovirtual unsigned int NumberOfOutputs() const
oCOutput* Output(const std::string & strName) const
oCOutput* Output(unsigned int uIndex) const
obool SchedulerContainsReader() const
obool SchedulerContainsWriter() const


Inherited from CDSLibComponent:

Public Methods

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

o Block whose operation is defined by its contained blocks
Block whose operation is defined by its contained blocks

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

o ~CSuperBlock()
Destructor.

obool AddInput(const std::string & strIdentifier, const std::string & strType = "float", unsigned int uiArrayLength = 0, bool bRead = false, bool bWrite = false)
Adds an input to this superblock.
Parameters:
strIdentifier - Identifier of the input.
strType - Type of the input.
uiArrayLength - If it is 0 or 1, then the input is of simple type. If it's 2 or more, then it will be an array of the type, and this argument sets the length of the array.
bRead - Sets if the input can be read from outside the dynamic system with a CReader.
bWrite - Sets if the input can be written from outside the dynamic system with a CWriter.

obool AddInputs(unsigned int uiNumber, const std::string & strType = "float", unsigned int uiArrayLength = 0, bool bRead = false, bool bWrite = false)
Adds inputs to this superblock.
Parameters:
uiNumber - Number of inputs to be added. The inputs will be added one by one with the identifier "input<number>", being <number> the already existing number of inputs each time.
strType - Type of the inputs.
uiArrayLength - If it is 0 or 1, then the inputs are of simple type. If it's 2 or more, then every input will be an array of the type, and this argument sets the length of the arrays.
bRead - Sets if the inputs can be read from outside the dynamic system with a CReader.
bWrite - Sets if the outputs can be written from outside the dynamic system with a CWriter.

obool AddOutput(const std::string & strIdentifier, const std::string & strType = "float", unsigned int uiArrayLength = 0, bool bRead = false, bool bWrite = false)
Adds an output to this superblock.
Parameters:
strIdentifier - Identifier of the output.
strType - Type of the output.
uiArrayLength - If it is 0 or 1, then the output is of simple type. If it's 2 or more, then it will be an array of the type, and this argument sets the length of the array.
bRead - Sets if the output can be read from outside the dynamic system with a CReader.
bWrite - Sets if the output can be written from outside the dynamic system with a CWriter.

obool AddOutputs(unsigned int uiNumber, const std::string & strType = "float", unsigned int uiArrayLength = 0, bool bRead = false, bool bWrite = false)
Adds outputs to this superblock.
Parameters:
uiNumber - Number of outputs to be added. The outputs will be added one by one with the identifier "input<number>", being <number> the already existing number of outputs each time.
strType - Type of the outputs.
uiArrayLength - If it is 0 or 1, then the outputs are of simple type. If it's 2 or more, then every output will be an array of the type, and his argument sets the length of the arrays.
bRead - Sets if the outputs can be read from outside the dynamic system with a CReader.
bWrite - Sets if the outputs can be written from outside the dynamic system with a CWriter.

ovirtual std::string Class() const
Returns "CSuperBlock".

oCSuperBlock* Clone(const CDSLibComponent* pContainer = NULL) const
Returns a new CSuperBlock 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 "CSuperBlock" or the name of one of its base classes.
Parameters:
strClassName - Class name.

ostd::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 - Value of the "name" parameter of the template command.

ovirtual void GenerateCode(const std::string & strTemplatesPath, CCodeSection* pCodeSection) const
Makes this object and its contained objects generate code for the section in the arguments.
Parameters:
strTemplatesPath - Path of the folder containing the template files.
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.


Direct child classes:
CScheduler
Author:
Ivan Martinez

Alphabetic index HTML hierarchy of classes or Java



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