Changeset 2541 for code/branches/presentation/src/core
- Timestamp:
- Dec 28, 2008, 7:45:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/core/ConfigFileManager.h
r2103 r2541 38 38 39 39 #include "util/Math.h" 40 #include "util/OrxEnum.h" 40 41 41 42 namespace orxonox 42 43 { 43 // Use unsigned int as config file type to have an arbitrary number of files 44 class ConfigFileType 45 { 46 public: 47 ConfigFileType() { } 48 ConfigFileType(unsigned int type) { type_ = type; } 49 ConfigFileType(const ConfigFileType& instance) { type_ = instance.type_; } 50 51 operator unsigned int() { return type_; } 52 ConfigFileType& operator =(unsigned int type) { type_ = type; return *this; } 53 bool operator <(const ConfigFileType& right) const { return (type_ < right.type_); } 54 55 /* *** Put the different config file types here *** */ 56 static const unsigned int NoType = 0; 57 static const unsigned int Settings = 1; 58 static const unsigned int JoyStickCalibration = 2; 59 60 static const unsigned int numberOfReservedTypes = 1024; 61 62 private: 63 unsigned int type_; 44 // Use int as config file type to have an arbitrary number of files 45 struct ConfigFileType : OrxEnum<ConfigFileType> 46 { 47 OrxEnumConstructors(ConfigFileType); 48 49 static const int NoType = 0; 50 static const int Settings = 1; 51 static const int JoyStickCalibration = 2; 52 53 static const int numberOfReservedTypes = 1024; 64 54 }; 65 55
Note: See TracChangeset
for help on using the changeset viewer.