DataDirector API
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
DDD_ConvertExpression Class Reference
Inheritance diagram for DDD_ConvertExpression:
DDD_ConvertBase DDD_AttributeObserver DDD_Base DDD_AttributeContainer DDD_LogFacade DDD_ConvertSubroutine

Public Member Functions

virtual void OnAttributeChanged (DDD_AttributeBase *attribute)
 
 DDD_ConvertExpression (DDD_AttributeObserver *observer)
 
virtual ~DDD_ConvertExpression ()
 
virtual bool Convert (DDD_EndpointList &inputs, DDD_EndpointList &outputs)
 
virtual bool ConfigurationValid (DDD_EndpointList &inputs, DDD_EndpointList &outputs)
 
virtual bool Init (const std::string &params)
 
virtual int MinInputs ()
 
virtual int MaxInputs ()
 
virtual int MinOutputs ()
 
virtual int MaxOutputs ()
 
virtual const char * ClassName ()
 
virtual const char * Description ()
 
- Public Member Functions inherited from DDD_ConvertBase
 DDD_ConvertBase ()
 
const char * DataDirectorVersion ()
 
virtual std::string EndpointInputName (int index)
 
virtual std::string EndpointOutputName (int index)
 
- 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 &params)
 
virtual DDD_AttributeListGetParams ()
 

Static Public Attributes

static const char * CONVERT_EXPRESSION_CLASSNAME
 

Protected Member Functions

void ParseExpression ()
 
virtual void Evaluate (DDD_EndpointList &inputs, DDD_EndpointList &outputs)
 
- Protected Member Functions inherited from DDD_ConvertBase
bool InputsOK (int nInputs)
 
bool OutputsOK (int nOutputs)
 

Protected Attributes

DDD_AttributeString_expression
 
bool _expressionValid
 
ExprEval::Expression * _parsedExpression
 
ExprEval::ValueList * _vList
 
- Protected Attributes inherited from DDD_Base
std::string _instanceName
 
DDD_AttributeList _params
 

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,...)
 

Constructor & Destructor Documentation

Constructor

Parameters
observerAn attribute observer that will observer the parameters of the converter All converter parameters must use this observer for the converter to work right in the Data Director GUI.
virtual ~DDD_ConvertExpression ( )
virtual

Destructor

Member Function Documentation

virtual const char* ClassName ( )
inlinevirtual
Returns
Returns the class name of this converter

Implements DDD_ConvertBase.

Reimplemented in DDD_ConvertSubroutine.

virtual bool ConfigurationValid ( DDD_EndpointList inputs,
DDD_EndpointList outputs 
)
virtual
Returns
Returns true if the converter's configuration is valid
Parameters
inputsList of converter inputs
outputsList of converter outputs

Reimplemented from DDD_ConvertBase.

virtual bool Convert ( DDD_EndpointList inputs,
DDD_EndpointList outputs 
)
virtual

Performs the actual conversion function

Parameters
inputsA list of inputs to the converter
outputsA list of outputs to the converter
Returns
True if the converter fired.

Implements DDD_ConvertBase.

virtual const char* Description ( )
virtual

Used by the GUI to explain what this converter does

Returns
Returns a string for the GUI to use

Implements DDD_ConvertBase.

Reimplemented in DDD_ConvertSubroutine.

virtual void Evaluate ( DDD_EndpointList inputs,
DDD_EndpointList outputs 
)
protectedvirtual

Evaluate the stored parse tree, updating the inputs

Parameters
inputsThe list of inputs for the connnection
outputsThe list of outputs for the connnection

Reimplemented in DDD_ConvertSubroutine.

virtual bool Init ( const std::string &  params)
virtual

Initializes the converter, if necessary

Parameters
paramString
Returns
True if the converter was successfully initialized.

Reimplemented from DDD_ConvertBase.

Reimplemented in DDD_ConvertSubroutine.

virtual int MaxInputs ( )
virtual
Returns
Returns the maximum number of inputs supported by this converter

Reimplemented from DDD_ConvertBase.

virtual int MaxOutputs ( )
virtual
Returns
Returns the maximum number of outputs supported by this converter

Reimplemented from DDD_ConvertBase.

virtual int MinInputs ( )
virtual
Returns
Returns the minimum number of inputs required by this converter

Reimplemented from DDD_ConvertBase.

virtual int MinOutputs ( )
virtual
Returns
Returns the minimum number of outputs required by this converter

Reimplemented from DDD_ConvertBase.

virtual void OnAttributeChanged ( DDD_AttributeBase attribute)
virtual

A callback method that will be called when the attribute being observed changes if this observer has registered to be notified on attribute change

Parameters
attributeA pointer to the attribute that changed

Implements DDD_AttributeObserver.

void ParseExpression ( )
protected

Parse the input expression and convert it into a parse tree

Member Data Documentation

DDD_AttributeString* _expression
protected

The C expression to interpret

bool _expressionValid
protected

True if the C expression is valid

ExprEval::Expression* _parsedExpression
protected

The C expression as a parse tree

ExprEval::ValueList* _vList
protected

The list of C variables

const char* CONVERT_EXPRESSION_CLASSNAME
static

Classname string constant. Needed by the ConverterFactory


The documentation for this class was generated from the following file: