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