TvlSim Logo  1.01.6
C++ Simulated Travel-Oriented Distribution System Library
Loading...
Searching...
No Matches
SimulationStatusKey.cpp
Go to the documentation of this file.
1// //////////////////////////////////////////////////////////////////////
2// Import section
3// //////////////////////////////////////////////////////////////////////
4// STL
5#include <sstream>
6// TvlSim
9
10namespace TVLSIM {
11
12 // ////////////////////////////////////////////////////////////////////
13 SimulationStatusKey::SimulationStatusKey (const SimulatorID_T& iSimulatorID)
14 : _simulatorID (iSimulatorID) {
15 }
16
17 // ////////////////////////////////////////////////////////////////////
18 SimulationStatusKey::SimulationStatusKey()
19 : _simulatorID (DEFAULT_TVLSIM_ID) {
20 assert (false);
21 }
22
23 // ////////////////////////////////////////////////////////////////////
24 SimulationStatusKey::SimulationStatusKey (const SimulationStatusKey& iKey)
25 : _simulatorID (iKey._simulatorID) {
26 }
27
28 // ////////////////////////////////////////////////////////////////////
31
32 // ////////////////////////////////////////////////////////////////////
33 void SimulationStatusKey::toStream (std::ostream& ioOut) const {
34 ioOut << "SimulationStatusKey: " << toString() << std::endl;
35 }
36
37 // ////////////////////////////////////////////////////////////////////
38 void SimulationStatusKey::fromStream (std::istream& ioIn) {
39 }
40
41 // ////////////////////////////////////////////////////////////////////
42 const std::string SimulationStatusKey::toString () const {
43 std::ostringstream oStr;
44 oStr << "(" <<_simulatorID << ")";
45 return oStr.str();
46 }
47
48}
std::string SimulatorID_T
const std::string DEFAULT_TVLSIM_ID
Definition BasConst.cpp:12
void toStream(std::ostream &ioOut) const
void fromStream(std::istream &ioIn)
const std::string toString() const