copasi API  0.1
Public Member Functions
CEventAssignment Class Reference

#include <CEvent.h>

Inheritance diagram for CEventAssignment:
CCopasiContainer CCopasiObject

List of all members.

Public Member Functions

 CEventAssignment (const std::string &targetKey="", const CCopasiContainer *pParent=NULL)
 CEventAssignment (const CEventAssignment &src, const CCopasiContainer *pParent=NULL)
 ~CEventAssignment ()
virtual bool setObjectParent (const CCopasiContainer *pParent)
bool compile (std::vector< CCopasiContainer * > listOfContainer)
const std::string & getKey () const
bool setTargetKey (const std::string &targetKey)
const std::string & getTargetKey () const
const CCopasiObjectgetTargetObject () const
bool setExpression (const std::string &expression)
void setExpressionPtr (CExpression *pExpression)
std::string getExpression () const
const CExpressiongetExpressionPtr () const
CExpressiongetExpressionPtr ()

Constructor & Destructor Documentation

CEventAssignment::CEventAssignment ( const std::string &  targetKey = "",
const CCopasiContainer pParent = NULL 
)

Default constructor

Parameters:
conststd::string & targetKey (default: "")
"constCCopasiContainer * pParent (default: NULL)
CEventAssignment::CEventAssignment ( const CEventAssignment src,
const CCopasiContainer pParent = NULL 
)

Copy constructor

Parameters:
const CEventAssignment &src
"constCCopasiContainer * pParent (default: NULL)
CEventAssignment::~CEventAssignment ( )

Destructor


Member Function Documentation

bool CEventAssignment::compile ( std::vector< CCopasiContainer * >  listOfContainer)

Compile the event assignment.

Parameters:
std::vector<CCopasiContainer * > listOfContainer
Returns:
bool success
std::string CEventAssignment::getExpression ( ) const

Retrieve the expression as a string.

Returns:
std::string expression
const CExpression * CEventAssignment::getExpressionPtr ( ) const

Retrieve the pointer to the expression.

Returns:
CExpression * pExpression
CExpression * CEventAssignment::getExpressionPtr ( )

Retrieve the pointer to the expression.

Returns:
CExpression * pExpression
const std::string & CEventAssignment::getKey ( ) const [virtual]

Retrieve the key

Returns:
const std::string & key

Reimplemented from CCopasiObject.

const std::string & CEventAssignment::getTargetKey ( ) const

Retrieve the target key

Returns:
const std::string & targetKey
const CCopasiObject * CEventAssignment::getTargetObject ( ) const

Retrieve a pointer to the target object.

Returns:
const CCopasiObject * targetObject
bool CEventAssignment::setExpression ( const std::string &  expression)

Set the expression from an infix string. The return value indicates if parsing the expression was successful.

Parameters:
conststd::string & expression
Returns:
bool success
void CEventAssignment::setExpressionPtr ( CExpression pExpression)

Set the expression from an expression pointer. CEventAssignment takes ownership.

Parameters:
CExpression*pExpression
bool CEventAssignment::setObjectParent ( const CCopasiContainer pParent) [virtual]

Set the object parent

Parameters:
constCCopasiContainer * pParent
Returns:
bool success

Reimplemented from CCopasiObject.

bool CEventAssignment::setTargetKey ( const std::string &  targetKey)

Set the key of the target

Parameters:
conststd::string & targetKey
Returns:
bool success;

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines