41 #ifndef __PLUGGABLEWARE_HPP__
42 #define __PLUGGABLEWARE_HPP__
44 #include <boost/filesystem/path.hpp>
45 #include <boost/property_tree/ptree.hpp>
53 namespace openfluid {
namespace ware {
59 #define WAREBODY_PROC_NAME "GetWareBody"
60 #define WAREBODY_PROC_DECL GetWareBody
65 #define WARESIGNATURE_PROC_NAME "GetWareSignature"
66 #define WARESIGNATURE_PROC_DECL GetWareSignature
71 #define WAREABIVERSION_PROC_NAME "GetWareABIVersion"
72 #define WAREABIVERSION_PROC_DECL GetWareABIVersion
93 enum WareType { UNDEFINED, OBSERVER, SIMULATOR, OTHER };
111 virtual bool isLinked()
const {
return mp_WareEnv != NULL; };
119 virtual void OPENFLUID_RaiseError(
const std::string& Msg);
126 bool OPENFLUID_GetRunEnvironment(std::string Key, std::string& Val);
133 bool OPENFLUID_GetRunEnvironment(std::string Key,
bool& Val);
155 virtual void initializeWare(
const WareID_t& ID);
157 virtual void finalizeWare();
164 static boost::property_tree::ptree getParamsAsPropertyTree(
Definition: StringValue.hpp:91
std::map< WareParamKey_t, WareParamValue_t > WareParams_t
Definition: PluggableWare.hpp:82
openfluid::core::StringValue WareParamValue_t
Definition: PluggableWare.hpp:80
WareType
Definition: PluggableWare.hpp:93
void linkToRunEnvironment(const openfluid::base::EnvironmentProperties *Env)
Definition: PluggableWare.hpp:150
WareID_t OPENFLUID_GetWareID() const
Definition: PluggableWare.hpp:139
std::string WareID_t
Definition: WareSignature.hpp:86
std::string WareParamKey_t
Definition: PluggableWare.hpp:79
Definition: PluggableWare.hpp:89
Definition: EnvProperties.hpp:53
#define DLLEXPORT
Definition: dllexport.hpp:51