Changeset 2541
- Timestamp:
- Dec 28, 2008, 7:45:36 PM (16 years ago)
- Location:
- code/branches/presentation
- Files:
-
- 1 added
- 2 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 -
code/branches/presentation/visual_studio/vc8/util.vcproj
r2171 r2541 173 173 </File> 174 174 <File 175 RelativePath="..\..\src\util\OrxEnum.cc" 176 > 177 </File> 178 <File 175 179 RelativePath="..\..\src\util\OutputBuffer.cc" 176 180 > … … 247 251 </File> 248 252 <File 253 RelativePath="..\..\src\util\OrxEnum.h" 254 > 255 </File> 256 <File 249 257 RelativePath="..\..\src\util\OrxonoxPlatform.h" 250 258 >
Note: See TracChangeset
for help on using the changeset viewer.