Inheritance:
Public Methods
-
COutput( const std::string &, Identifier for the output variable* / const std::string &, Type for the output variable* / unsigned int = 0, bool = false, bool = false )
- Constructor
-
COutput( const COutput* , Object to copy from* / const CDSLibComponent* = NULL Container for this new object* / )
- Copy-constructor.
-
~COutput()
- Destructor
-
std::string Class() const
- Returns "COutput"
-
virtual COutput* Clone( const CDSLibComponent* = NULL Container for the new object* / ) const
- Returns a new COutput object copied from this one using the copy-constructor above
-
bool Connect(COutput* )
- Tries to connect this output to the argument.
-
bool Connected() const
- Returns if this output has a value source.
-
enum EConnectionType ConnectionType() const
- Returns the way the output is connected
-
virtual bool DescendantOf(const std::string &) const
- Returns if the argument is "COutput" or the name of one of its base classes
-
bool Shared() const
- Returns if this output is the value source for an input under a different scheduler.
-
virtual unsigned int SourceBlockIndex() const
- Returns the index of the block containing the source variable in the list of components of its container
-
virtual unsigned int SourceVariableIndex() const
- Returns the index of the source variable in the list of components of its container
-
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
-
const COutput* ValueSource() const
- Returns the output from which this output gets its value when it is connected, NULL otherwise
-
virtual std::string ValueSourceName() const
- If this output is connected, returns ExternalIdentifier() of the value source.
Public Members
-
Class that defines output variables for blocks
Protected Methods
-
virtual void Arrange()
- Calls UpdateShared()
-
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
-
void SetConnectionType( enum EConnectionType )
- Sets the way the output is connected
-
void SetSourceBlockIndex( unsigned int )
- Sets the index of the block containing the source variable in the list of components of its container
-
void SetSourceVariableIndex( unsigned int )
- Sets the index of the source variable in the list of components of its container
-
void UpdateShared()
- Updates the value of the shared property by looking for inputs connected to this output under other schedulers
-
COutput* ValueSource()
- Returns the output where this output gets its value from when it is connected, NULL otherwise
Public Methods
-
bool AcceptsContainer( const CDSLibComponent* Container for this component* / )
-
unsigned int ArrayLength() const
-
const std::string ExternalIdentifier() const
-
bool IsArray() const
-
bool Read() const
-
bool SetArrayLength( unsigned int )
-
bool SetRead(bool)
-
void SetType(const std::string &)
-
bool SetWrite(bool)
-
virtual const std::string Type() const
-
bool Write() const
Public Members
-
Base class for all the others that define variables that may be used in a dynamic system
Public Methods
-
virtual bool AddComponent(CDSLibComponent* pComponent)
-
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)
-
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
Class that defines output variables for blocks
- Class that defines output variables for blocks
COutput( 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
COutput( const COutput* , Object to copy from* / const CDSLibComponent* = NULL Container for this new object* / )
- Copy-constructor. Copies all the attributes of COutput and calls
the copy-constructor of CVariable
~COutput()
- Destructor
std::string Class() const
- Returns "COutput"
virtual COutput* Clone( const CDSLibComponent* = NULL Container for the new object* / ) const
- Returns a new COutput object copied from this one using the
copy-constructor above
bool Connect(COutput* )
- Tries to connect this output to the argument. There are three possible
situations:
- This output is in a superblock and the argument is in a block directly
contained by the superblock. The connectiot type is set to
SUBBLOCK_OUTPUT and the indexes for source variable and source
block are set to point to the argument. Returns true.
- This output is in a block and the argument is in the inmediate
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
bool Connected() const
- Returns if this output has a value source. Variables who are the value
source of other variables are considered as not connected
enum EConnectionType ConnectionType() const
- Returns the way the output is connected
virtual bool DescendantOf(const std::string &) const
- Returns if the argument is "COutput" or the name of one of its base
classes
bool Shared() const
- Returns if this output is the value source for an input under a
different scheduler. Concurrent access protections will be generated
in that case
virtual unsigned int SourceBlockIndex() const
- Returns the index of the block containing the source variable in
the list of components of its container
virtual unsigned int SourceVariableIndex() const
- Returns the index of the source variable in the list of components
of its container
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
const COutput* ValueSource() const
- Returns the output from which this output gets its value when it is
connected, NULL otherwise
virtual std::string ValueSourceName() const
- If this output is connected, returns ExternalIdentifier() of the
value source. If it is not, returns Identifier()
virtual void Arrange()
- Calls UpdateShared()
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
void SetConnectionType( enum EConnectionType )
- Sets the way the output is connected
- Parameters:
- EConnectionType - Connection type
void 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
void 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
void UpdateShared()
- Updates the value of the shared property by looking for inputs
connected to this output under other schedulers
COutput* ValueSource()
- Returns the output where this output gets its value from when it is
connected, NULL otherwise
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.