#include <CoderBlockInformation.h>
blockfactory::coder::CoderBlockInformation::CoderBlockInformation |
( |
| ) |
|
blockfactory::coder::CoderBlockInformation::~CoderBlockInformation |
( |
| ) |
|
|
override |
Get the signal connected to an input input port.
- Parameters
-
idx | The index of the port to which the signal is connected. |
- Returns
- The pointer to the signal connected to the input port for success, a
nullptr
otherwise.
Implements blockfactory::core::BlockInformation.
Get information of an output port.
- Parameters
-
idx | The index of the port. |
- Returns
- A Port::Info object containing the port information.
Implements blockfactory::core::BlockInformation.
Get the signal connected to an output port.
- Parameters
-
idx | The index of the port to which the signal is connected. |
- Returns
- The pointer to the signal connected to the output port for success, a
nullptr
otherwise.
Implements blockfactory::core::BlockInformation.
bool blockfactory::coder::CoderBlockInformation::getUniqueName |
( |
std::string & |
blockUniqueName | ) |
const |
|
overridevirtual |
Get the unique name of the block instance.
Retrive from the engine the unique name of the block. A typical example is the scoped name of the block that takes into account its location in the model hierarchy.
- Parameters
-
[out] | blockUniqueName | The unique name of the block instance. |
- Returns
- True for success, false otherwise.
Implements blockfactory::core::BlockInformation.
bool blockfactory::coder::CoderBlockInformation::optionFromKey |
( |
const std::string & |
key, |
|
|
double & |
option |
|
) |
| const |
|
overridevirtual |
Convert a block option from its string identifier to a specific implementation.
- Parameters
-
[in] | key | Identifier of the block option. |
[out] | option | Implementation-specific block option. |
- Returns
- True if the option has been converted, false otherwise.
Implements blockfactory::core::BlockInformation.
bool blockfactory::coder::CoderBlockInformation::parseParameters |
( |
core::Parameters & |
parameters | ) |
|
|
overridevirtual |
Parse the core::Block parameters.
This method allows defining how to gather block parameters from a specific implementation.
- Parameters
-
[out] | parameters | A container filled with the parsed parameters. |
- Returns
- True for success, false otherwise.
Implements blockfactory::core::BlockInformation.
bool blockfactory::coder::CoderBlockInformation::setInputPort |
( |
const core::Port::Info & |
portInfo, |
|
|
void * |
signalAddress |
|
) |
| |
bool blockfactory::coder::CoderBlockInformation::setOutputPort |
( |
const core::Port::Info & |
portInfo, |
|
|
void * |
signalAddress |
|
) |
| |
Set input / output ports information.
Specify I/O ports information such as indices, dimensions, and datatype.
- Parameters
-
inputPortsInfo | Vector of core::Port::Info objects storing input port information. |
outputPortsInfo | Vector of core::Port::Info objects storing output port information. |
- Returns
- True for success, false otherwise.
- Note
- This method also automatically set the number of input and output ports and should be called only once.
Implements blockfactory::core::BlockInformation.
bool blockfactory::coder::CoderBlockInformation::setUniqueBlockName |
( |
const std::string & |
blockUniqueName | ) |
|
bool blockfactory::coder::CoderBlockInformation::storeRTWParameters |
( |
const core::Parameters & |
parameters | ) |
|
The documentation for this class was generated from the following file:
- /home/travis/build/robotology/blockfactory/sources/SimulinkCoder/include/BlockFactory/SimulinkCoder/CoderBlockInformation.h