class CInput


Inheritance:


Public Methods

[more] CInput( const std::string &, Identifier for the output variable* / const std::string &, Type for the output variable* / unsigned int = 0, bool = false, bool = false )
Constructor
[more] CInput( const CInput* , Object to copy from* / const CDSLibComponent* = NULL Container for this new object* / )
Copy-constructor.
[more] ~CInput()
Destructor
[more]std::string Class() const
Returns "CInput"
[more]virtual CInput* Clone( const CDSLibComponent* = NULL Container for the new object* / ) const
Returns a new CInput object copied from this one using the copy-constructor above
[more]bool Connect(COutput* )
Tries to connect this input to the argument.
[more]bool Connect(CInput* )
Tries to connect this input to the argument.
[more]bool Connected() const
Returns if this input has a value source.
[more]bool ConnectedToShared() const
Returns if this input is connected to an output under a different scheduler.
[more]enum EConnectionType ConnectionType() const
Returns the way the output is connected
[more]virtual bool DescendantOf(const std::string &) const
Returns TRUE if the argument is "CInput" or one of its base classes, otherwise FALSE
[more]virtual unsigned int SourceBlockIndex() const
Returns the index of the block containing the source variable in the list of components of its container
[more]virtual unsigned int SourceSchedulerIndex() const
Returns the index of the scheduler of the block containing the source variable in the list of components of its container
[more]virtual unsigned int SourceVariableIndex() const
Returns the index of the source variable in the list of components of its container
[more]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 
[more]const CVariable* ValueSource() const
Returns the variable from which this input gets its value when it is connected, NULL otherwise

Public Members

[more] Class that defines input variables for blocks

Protected Methods

[more]virtual void GenerateCode( const std::string &, Path to the template files to be parsed* / CCodeSection* 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* / ) const
Generates code for the section in the arguments, in this object and its contained objects
[more]void SetConnectionType( enum EConnectionType )
Sets the way the output is connected
[more]void SetSourceBlockIndex( unsigned int )
Sets the index of the block containing the source variable in the list of components of its container
[more]void SetSourceSchedulerIndex( unsigned int )
Sets the index of the scheduler of the block containing the source variable in the list of components of its container
[more]void SetSourceVariableIndex( unsigned int )
Sets the index of the source variable in the list of components of its container


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

o Class that defines input variables for blocks
Class that defines input variables for blocks

o CInput( const std::string &, Identifier for the output variable* / const std::string &, Type for the output variable* / unsigned int = 0, bool = false, bool = false )
Constructor
Parameters:
int - Array length for the output variable
bool - Sets if the variable can be read from outside the dynamic system
bool - Sets if the variable can be written from outside the dynamic system

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

o ~CInput()
Destructor

ostd::string Class() const
Returns "CInput"

ovirtual CInput* Clone( const CDSLibComponent* = NULL Container for the new object* / ) const
Returns a new CInput object copied from this one using the copy-constructor above

obool Connect(COutput* )
Tries to connect this input to the argument. There are three possible situations: - This input and the argument are in top level blocks under different schedulers. The connection type is set to SCHEDULER_SUPERBLOCK_OUTPUT and the indexes for source scheduler, source block and source variable are set to point to the argument. Returns true. - This input's block and the argument's block are in the same superblock. The connection type is set to OUTPUT, and the indexes for the source scheduler, source block and source variable are set to point to the argument. The call returns true. - In any other case, the ILEGAL_CONNECTION_ERROR message es generated and returs false

obool Connect(CInput* )
Tries to connect this input to the argument. There are three possible situations: - This input is in a block and the argument is in the inmediate superblock. The connection type is set to SUPERBLOCK_INPUT and the indexes for the source scheduler, source block and source variable are set to point to the argument. Returns true. - This input is in a superblock and the argument is in a block directly contained by the superblock. In this case the connection is tried in the reverse order, Connect(...) is called in the argument passing this object as its argument. Returns the result of the call. - In any other case, the ILEGAL_CONNECTION_ERROR message es generated and returs false

obool Connected() const
Returns if this input has a value source. Variables who are the value source of other variables are considered as not connected

obool ConnectedToShared() const
Returns if this input is connected to an output under a different scheduler. Concurrent access protections will be generated in that case

oenum EConnectionType ConnectionType() const
Returns the way the output is connected

ovirtual bool DescendantOf(const std::string &) const
Returns TRUE if the argument is "CInput" or one of its base classes, otherwise FALSE

ovirtual unsigned int SourceBlockIndex() const
Returns the index of the block containing the source variable in the list of components of its container

ovirtual unsigned int SourceSchedulerIndex() const
Returns the index of the scheduler of the block containing the source variable in the list of components of its container

ovirtual unsigned int SourceVariableIndex() const
Returns the index of the source variable in the list of components of its container

ovirtual 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 

oconst CVariable* ValueSource() const
Returns the variable from which this input gets its value when it is connected, NULL otherwise

ovirtual void GenerateCode( const std::string &, Path to the template files to be parsed* / CCodeSection* 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* / ) const
Generates code for the section in the arguments, in this object and its contained objects

ovoid SetConnectionType( enum EConnectionType )
Sets the way the output is connected
Parameters:
EConnectionType - Connection type

ovoid SetSourceBlockIndex( unsigned int )
Sets the index of the block containing the source variable in the list of components of its container
Parameters:
int - Index of the block it its list of components

ovoid SetSourceSchedulerIndex( unsigned int )
Sets the index of the scheduler of the block containing the source variable in the list of components of its container
Parameters:
int - Index of the scheduler in its list of components

ovoid SetSourceVariableIndex( unsigned int )
Sets the index of the source variable in the list of components of its container
Parameters:
int - Index of the source variable in its list of components


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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