Inheritance:
Public Methods
-
CSuperBlock(const CSuperBlock* pSuperBlock, const CDSLibComponent* pContainer = NULL)
- Copy-constructor.
-
~CSuperBlock()
- Destructor.
-
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.
-
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.
-
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.
-
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.
-
virtual std::string Class() const
- Returns "CSuperBlock".
-
CSuperBlock* Clone(const CDSLibComponent* pContainer = NULL) const
- Returns a new CSuperBlock object copied from this one using the copy-constructor above.
-
virtual bool DescendantOf(const std::string & strClassName) const
- Returns if the argument is "CSuperBlock" or the name of one of its base classes.
-
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
-
Block whose operation is defined by its contained blocks
Protected Methods
-
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
-
virtual bool AcceptsContainer(const CDSLibComponent* pContainer)
-
virtual bool AddComponent(CDSLibComponent* pComponent)
-
CBlockVariable* BlockVariable(const std::string & strIdentifier) const
-
CBlockVariable* BlockVariable(unsigned int uIndex) const
-
virtual const std::string GlobalIdentifier() const
-
CInput* Input(const std::string & strName) const
-
CInput* Input(unsigned int uIndex) const
-
virtual unsigned int NumberOfBlockVariables() const
-
virtual unsigned int NumberOfInputs() const
-
virtual unsigned int NumberOfOutputs() const
-
COutput* Output(const std::string & strName) const
-
COutput* Output(unsigned int uIndex) const
-
bool SchedulerContainsReader() const
-
bool SchedulerContainsWriter() const
Public Methods
-
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)
-
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
-
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
Block whose operation is defined by its contained blocks
- Block whose operation is defined by its contained blocks
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.
~CSuperBlock()
- Destructor.
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.
- 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.
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.
- 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.
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.
- 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.
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.
- 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.
virtual std::string Class() const
- Returns "CSuperBlock".
CSuperBlock* 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.
virtual 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.
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 - Value of the "name" parameter of the template
command.
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.
- 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++.