// idman.h // // ID manager class. // To be included as a static data member in any class requiring unique // identifiers. #ifndef _IDMAN_H_ #define _IDMAN_H_ class IDManager { int nextID; public: IDManager() : nextID(0) { } int getNextID() { return nextID++; } }; #endif // _IDMAN_H_