DataDirector API
|
Abstract base class for all DDD_DataDirector converters. More...
#include <DDD_ConvertBase.h>
Public Member Functions | |
DDD_ConvertBase () | |
const char * | DataDirectorVersion () |
virtual std::string | EndpointInputName (int index) |
virtual std::string | EndpointOutputName (int index) |
virtual bool | Init (const std::string ¶mStr) |
virtual int | MinInputs () |
virtual int | MaxInputs () |
virtual int | MinOutputs () |
virtual int | MaxOutputs () |
virtual bool | ConfigurationValid (DDD_EndpointList &inputs, DDD_EndpointList &outputs) |
virtual bool | Convert (DDD_EndpointList &inputs, DDD_EndpointList &outputs)=0 |
virtual const char * | ClassName ()=0 |
virtual const char * | Description ()=0 |
Public Member Functions inherited from DDD_Base | |
DDD_Base () | |
virtual | ~DDD_Base () |
const char * | GetInstanceName () const |
virtual void | SetInstanceName (const char *name) |
virtual void | SetParams (const DDD_AttributeList ¶ms) |
virtual DDD_AttributeList & | GetParams () |
Protected Member Functions | |
bool | InputsOK (int nInputs) |
bool | OutputsOK (int nOutputs) |
Additional Inherited Members | |
Static Public Member Functions inherited from DDD_LogFacade | |
static void | LogDebug (const char *format,...) |
static void | LogInfo (const char *format,...) |
static void | LogWarning (const char *format,...) |
static void | LogError (const char *format,...) |
Protected Attributes inherited from DDD_Base | |
std::string | _instanceName |
DDD_AttributeList | _params |
Abstract base class for all DDD_DataDirector converters.
DDD_ConvertBase | ( | ) |
Constructor
|
pure virtual |
Implemented in DDD_ConvertSubroutine, DDD_ConvertExpression, DDD_ConvertFormat, DDD_ConvertClamp, DDD_ConvertConstant, DDD_ConvertAssign, DDD_ConvertMean, DDD_ConvertOffset, and DDD_ConvertScale.
|
virtual |
inputs | List of converter inputs |
outputs | List of converter outputs |
Reimplemented in DDD_ConvertClamp, and DDD_ConvertExpression.
|
pure virtual |
Performs the actual conversion function
inputs | A list of inputs to the converter |
outputs | A list of outputs to the converter |
Implemented in DDD_ConvertFormat, DDD_ConvertClamp, DDD_ConvertConstant, DDD_ConvertAssign, DDD_ConvertOffset, DDD_ConvertScale, DDD_ConvertMean, and DDD_ConvertExpression.
const char* DataDirectorVersion | ( | ) |
|
pure virtual |
Used by the GUI to explain what this converter does
Implemented in DDD_ConvertSubroutine, DDD_ConvertExpression, DDD_ConvertFormat, DDD_ConvertClamp, DDD_ConvertConstant, DDD_ConvertAssign, DDD_ConvertMean, DDD_ConvertOffset, and DDD_ConvertScale.
|
virtual |
Returns a string label for the input index. Converters must provide named labels to differentiate between different inputs/outputs.
index | The index of the input |
|
virtual |
Returns a string label for the output index. Converters must provide named labels to differentiate between different inputs/outputs.
index | The index of the output |
|
virtual |
Initializes the converter, if necessary
paramString |
Reimplemented in DDD_ConvertSubroutine, DDD_ConvertExpression, DDD_ConvertAssign, DDD_ConvertClamp, DDD_ConvertConstant, and DDD_ConvertMean.
|
protected |
Checks that nInputs fall within the allowed number of inputs
nInputs | The number of inputs |
|
inlinevirtual |
Reimplemented in DDD_ConvertFormat, DDD_ConvertExpression, DDD_ConvertConstant, and DDD_ConvertMean.
|
inlinevirtual |
Reimplemented in DDD_ConvertFormat, DDD_ConvertExpression, DDD_ConvertClamp, DDD_ConvertConstant, DDD_ConvertAssign, DDD_ConvertMean, DDD_ConvertOffset, and DDD_ConvertScale.
|
inlinevirtual |
Reimplemented in DDD_ConvertFormat, DDD_ConvertExpression, and DDD_ConvertConstant.
|
inlinevirtual |
Reimplemented in DDD_ConvertFormat, and DDD_ConvertExpression.
|
protected |
Checks that nOutputs fall within the allowed number of outputs
nOutputs | The number of outputs |