41 #ifndef __SIMULATIONDRIVENWARE_HPP__ 
   42 #define __SIMULATIONDRIVENWARE_HPP__ 
   54 #define REQUIRE_SIMULATION_STAGE(stage,sender,msg) \ 
   55   if (OPENFLUID_GetCurrentStage() != (stage)) \ 
   56     throw openfluid::base::FrameworkException(sender,msg); 
   58 #define REQUIRE_SIMULATION_STAGE_GE(stage,sender,msg) \ 
   59   if (OPENFLUID_GetCurrentStage() < (stage)) \ 
   60     throw openfluid::base::FrameworkException(sender,msg); 
   62 #define REQUIRE_SIMULATION_STAGE_LE(stage,sender,msg) \ 
   63   if (OPENFLUID_GetCurrentStage() > (stage)) \ 
   64     throw openfluid::base::FrameworkException(sender,msg); 
   67 namespace openfluid { 
namespace ware {
 
  149     virtual void OPENFLUID_RaiseWarning(
const std::string& Msg);
 
  156     virtual void OPENFLUID_RaiseWarning(
const std::string& Source, 
const std::string& Msg);
 
  162     virtual void OPENFLUID_RaiseError(
const std::string& Msg);
 
  169     virtual void OPENFLUID_RaiseError(
const std::string& Source, 
const std::string& Msg);
 
  174         mp_SimStatus(NULL), m_PreviousTimeIndex(0), mp_SimLogger(NULL) { };
 
  186       mp_SimLogger = SimLogger;
 
  189     void initializeWare(
const WareID_t& ID);
 
unsigned long long TimeIndex_t
Definition: DateTime.hpp:62
void setPreviousTimeIndex(const openfluid::core::TimeIndex_t &TimeIndex)
Definition: SimulationDrivenWare.hpp:193
virtual bool isLinked() const 
Definition: SimulationDrivenWare.hpp:88
Class for management of date and time information. 
Definition: DateTime.hpp:131
Definition: SimulationLogger.hpp:61
Definition: SimulationDrivenWare.hpp:70
WareType
Definition: PluggableWare.hpp:93
void linkToSimulationLogger(openfluid::base::SimulationLogger *SimLogger)
Definition: SimulationDrivenWare.hpp:184
SimulationDrivenWare(WareType WType)
Definition: SimulationDrivenWare.hpp:173
std::string WareID_t
Definition: WareSignature.hpp:86
openfluid::base::SimulationLogger * mp_SimLogger
Definition: SimulationDrivenWare.hpp:85
virtual bool isLinked() const 
Definition: PluggableWare.hpp:111
SchedulingConstraint
Definition: SimulationStatus.hpp:62
Definition: SimulationStatus.hpp:56
virtual ~SimulationDrivenWare()
Definition: SimulationDrivenWare.hpp:179
SimulationStage
Definition: SimulationStatus.hpp:60
unsigned long long Duration_t
Definition: DateTime.hpp:68
Definition: StdoutFileOStream.hpp:60
Definition: PluggableWare.hpp:89
openfluid::base::StdoutAndFileOutputStream OPENFLUID_Logger
Definition: SimulationDrivenWare.hpp:171
#define DLLEXPORT
Definition: dllexport.hpp:51