Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
openfluid::ware::PluggableWare Class Reference

#include <ware/PluggableWare.hpp>

Inheritance diagram for openfluid::ware::PluggableWare:
Inheritance graph
[legend]

Public Member Functions

virtual ~PluggableWare ()
 
void linkToRunEnvironment (const openfluid::core::MapValue *Env)
 
virtual void initializeWare (const WareID_t &ID)
 
virtual void finalizeWare ()
 

Static Public Member Functions

static bool isWellFormated (const openfluid::ware::WareParamKey_t &ParameterKey)
 

Protected Member Functions

virtual bool isLinked () const
 
virtual void OPENFLUID_RaiseError (const std::string &Msg)
 
bool OPENFLUID_GetRunEnvironment (const std::string &Key, std::string &Val)
 
bool OPENFLUID_GetRunEnvironment (const std::string &Key, bool &Val)
 
WareID_t OPENFLUID_GetWareID () const
 
WareType OPENFLUID_GetWareType () const
 
 PluggableWare (WareType WType)
 

Protected Attributes

bool m_Initialized
 

Constructor & Destructor Documentation

openfluid::ware::PluggableWare::PluggableWare ( WareType  WType)
protected
virtual openfluid::ware::PluggableWare::~PluggableWare ( )
virtual

Member Function Documentation

virtual void openfluid::ware::PluggableWare::finalizeWare ( )
virtual
virtual void openfluid::ware::PluggableWare::initializeWare ( const WareID_t ID)
virtual
virtual bool openfluid::ware::PluggableWare::isLinked ( ) const
inlineprotectedvirtual
static bool openfluid::ware::PluggableWare::isWellFormated ( const openfluid::ware::WareParamKey_t ParameterKey)
static

Return false if ParameterKey starts nor ends with a dot, true otherwise

void openfluid::ware::PluggableWare::linkToRunEnvironment ( const openfluid::core::MapValue Env)
inline
bool openfluid::ware::PluggableWare::OPENFLUID_GetRunEnvironment ( const std::string &  Key,
std::string &  Val 
)
protected

Gets an environment string value associated to a Key

Parameters
[in]Keythe sender of the message
[out]Valthe value associated with the environment key
bool openfluid::ware::PluggableWare::OPENFLUID_GetRunEnvironment ( const std::string &  Key,
bool &  Val 
)
protected

Gets an environment boolean value associated to a Key

Parameters
[in]Keythe sender of the message
[out]Valthe value associated with the environment key
WareID_t openfluid::ware::PluggableWare::OPENFLUID_GetWareID ( ) const
inlineprotected

Returns the ID of the ware (itself)

Returns
the ID
WareType openfluid::ware::PluggableWare::OPENFLUID_GetWareType ( ) const
inlineprotected

Returns the type of the ware (itself)

Returns
the type
virtual void openfluid::ware::PluggableWare::OPENFLUID_RaiseError ( const std::string &  Msg)
protectedvirtual

Raises an error message to the kernel. This stops the simulation the next time the kernel has the control

Parameters
[in]Msgthe content of the message

Reimplemented in openfluid::ware::SimulationDrivenWare.

Member Data Documentation

bool openfluid::ware::PluggableWare::m_Initialized
protected

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