00001 00005 /* Copyright © 2009 James Legg. 00006 This program is free software: you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation, either version 3 of the License, or 00009 (at your option) any later version. 00010 */ 00011 00012 #ifndef LIBTRACK_UNIQUE_IDENTIFIER_H_ 00013 #define LIBTRACK_UNIQUE_IDENTIFIER_H_ 00014 00015 namespace Track 00016 { 00017 00032 class UniqueIdentifier 00033 { 00034 public: 00036 UniqueIdentifier() 00037 { 00038 static unsigned long int static_name = 0; 00039 my_name = static_name++; 00040 } 00041 00043 unsigned long int get_name() const 00044 { 00045 return my_name; 00046 } 00047 private: 00049 unsigned long int my_name; 00050 }; 00051 00052 } 00053 00054 #endif
Generated at Mon Sep 6 00:41:12 2010 by Doxygen version 1.4.7 for Racer version svn335.