1 #ifndef _ots_ConfigurationVersion_h_
2 #define _ots_ConfigurationVersion_h_
16 static const unsigned int INVALID;
17 static const unsigned int DEFAULT;
18 static const unsigned int SCRATCH;
25 unsigned int version (
void)
const;
26 bool isTemporaryVersion (
void)
const;
27 bool isScratchVersion (
void)
const;
28 bool isInvalid (
void)
const;
29 std::string toString (
void)
const;
33 bool operator== (
unsigned int version)
const;
35 bool operator!= (
unsigned int version)
const;
44 if(version.isScratchVersion())
45 out <<
"ScratchVersion";
46 else if(version.isInvalid())
47 out <<
"InvalidVersion";
49 out << version.toString();
58 enum{ NUM_OF_TEMP_VERSIONS = 10000 };
60 unsigned int version_;
61 std::string versionString_;