class CBlock

Base class for the dynamic system blocks

Inheritance:


Public Methods

[more] CBlock()
Constructor
[more] CBlock(const CBlock* pBlock, const CDSLibComponent* pContainer = NULL)
Copy-constructor.
[more]virtual ~CBlock()
Destructor
[more]virtual bool AcceptsContainer(const CDSLibComponent* pContainer)
If the argument is a CSuperBlock or any descendant class, sets the argument as the container and returns true.
[more]virtual bool AddComponent(CDSLibComponent* pComponent)
Calls CDSLibComponent::AddComponent() with the same argument, and returns the result.
[more]CBlockVariable* BlockVariable(const std::string & strIdentifier) const
Returns the block variable with the identifier indicated by the argument.
[more]CBlockVariable* BlockVariable(unsigned int uIndex) const
Returns the block variable at the position of the list of block variables indicated by the argument.
[more]virtual bool DescendantOf(const std::string & strClassName) const
Returns if the argument is "CBlock" or the name of one of its base classes.
[more]virtual const std::string GlobalIdentifier() const
Returns the global identifier of the block in the realtime code
[more]CInput* Input(const std::string & strName) const
Returns the input with the identifier indicated by the argument.
[more]CInput* Input(unsigned int uIndex) const
Returns the input at the position of the list of inputs indicated by the argument.
[more]virtual unsigned int NumberOfBlockVariables() const
Returns the number of block variables in the block
[more]virtual unsigned int NumberOfInputs() const
Returns the number of inputs in the block
[more]virtual unsigned int NumberOfOutputs() const
Returns the number of outputs in the block
[more]COutput* Output(const std::string & strName) const
Returns the output with the identifier indicated by the argument.
[more]COutput* Output(unsigned int uIndex) const
Returns the output at the position of the list of outputs indicated by the argument.
[more]bool SchedulerContainsReader() const
Returns if the scheduler of this block contains CReader components
[more]bool SchedulerContainsWriter() const
Returns if the scheduler of this block contains CWriter components
[more]virtual std::string Value(const std::string & strValueName) const
Returns a string to be inserted in the generated code instead of a <value.


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)
ovirtual std::string Class() const
ovirtual CDSLibComponent* Clone( const CDSLibComponent* pContainer = NULL) const
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
ovirtual void GenerateCode(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

Base class for the dynamic system blocks
o CBlock()
Constructor

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

ovirtual ~CBlock()
Destructor

ovirtual bool AcceptsContainer(const CDSLibComponent* pContainer)
If the argument is a CSuperBlock 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.
Parameters:
pContainer - Container candidate

ovirtual bool AddComponent(CDSLibComponent* pComponent)
Calls CDSLibComponent::AddComponent() with the same argument, and returns the result. If the component is CInput or a descendant, adds a pointer to it to m_Inputs. If the component is COutput or a descendant, adds a pointer to it to m_Outputs. If the component is CBlockVariable or a descendant, adds a pointer to it to m_BlockVariables.
Parameters:
pComponent - New component

oCBlockVariable* BlockVariable(const std::string & strIdentifier) const
Returns the block variable with the identifier indicated by the argument.
Parameters:
strIdentifier - Identifier of the block variable

oCBlockVariable* BlockVariable(unsigned int uIndex) const
Returns the block variable at the position of the list of block variables indicated by the argument.
Parameters:
uIndex - Index for the list of block variables, starting with 0

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

ovirtual const std::string GlobalIdentifier() const
Returns the global identifier of the block in the realtime code

oCInput* Input(const std::string & strName) const
Returns the input with the identifier indicated by the argument.
Parameters:
strName - Indentifier of the input

oCInput* Input(unsigned int uIndex) const
Returns the input at the position of the list of inputs indicated by the argument.
Parameters:
uIndex - Index for the list of inputs, starting with 0

ovirtual unsigned int NumberOfBlockVariables() const
Returns the number of block variables in the block

ovirtual unsigned int NumberOfInputs() const
Returns the number of inputs in the block

ovirtual unsigned int NumberOfOutputs() const
Returns the number of outputs in the block

oCOutput* Output(const std::string & strName) const
Returns the output with the identifier indicated by the argument.
Parameters:
strName - Identifier of the output

oCOutput* Output(unsigned int uIndex) const
Returns the output at the position of the list of outputs indicated by the argument.
Parameters:
uIndex - Index for the list of inputs, starting with 0

obool SchedulerContainsReader() const
Returns if the scheduler of this block contains CReader components

obool SchedulerContainsWriter() const
Returns if the scheduler of this block contains CWriter components

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


Direct child classes:
CSuperBlock
CFunction

Alphabetic index HTML hierarchy of classes or Java



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