#include <IDSupplier.h>
Definition at line 43 of file IDSupplier.h.
Public Member Functions | |
| std::string | getNext () |
| Returns the next id. | |
| IDSupplier (const std::string &prefix="", long begin=0) | |
| Constructor. | |
| ~IDSupplier () | |
| Destructor. | |
Private Attributes | |
| long | myCurrent |
| The current index. | |
| std::string | myPrefix |
| The prefix to use. | |
| IDSupplier::IDSupplier | ( | const std::string & | prefix = "", |
|
| long | begin = 0 | |||
| ) |
| IDSupplier::~IDSupplier | ( | ) |
| std::string IDSupplier::getNext | ( | ) |
Returns the next id.
Definition at line 50 of file IDSupplier.cpp.
References myCurrent, and myPrefix.
Referenced by RORDLoader_TripDefs::getVehicleID().
00050 { 00051 std::ostringstream strm; 00052 strm << myPrefix << myCurrent++; 00053 return strm.str(); 00054 }
long IDSupplier::myCurrent [private] |
std::string IDSupplier::myPrefix [private] |
1.5.6