21 #ifndef _WORLDSTATE_HH_
22 #define _WORLDSTATE_HH_
99 public:
bool HasModelState(
const std::string &_modelName)
const;
105 public:
bool IsZero()
const;
129 _out <<
"<state world_name='" << _state.
name <<
"'>\n";
130 _out <<
"<sim_time>" << _state.
simTime <<
"</sim_time>\n";
131 _out <<
"<wall_time>" << _state.
wallTime <<
"</wall_time>\n";
132 _out <<
"<real_time>" << _state.
realTime <<
"</real_time>\n";
134 for (std::vector<ModelState>::const_iterator iter =
135 _state.modelStates.begin(); iter != _state.modelStates.end();
140 _out <<
"</state>\n";
146 private: std::vector<ModelState> modelStates;