00001
00002
00003
00004
00005
00006
00007
00008
00014 #ifndef _FCD_VERSION_H_
00015 #define _FCD_VERSION_H_
00016
00017 #ifdef major
00018 #undef major
00019 #endif
00020 #ifdef minor
00021 #undef minor
00022 #endif
00023
00030 class FCOLLADA_EXPORT FCDVersion
00031 {
00032 public:
00033 uint32 major;
00034 uint32 minor;
00035 uint32 revision;
00038 FCDVersion();
00039
00042 FCDVersion(const fm::string& v);
00043
00048 FCDVersion(uint32 major, uint32 minor, uint32 revision);
00049
00051 ~FCDVersion() {}
00052
00056 void ParseVersionNumbers(const fm::string& v);
00057
00062 friend FCOLLADA_EXPORT bool IsEquivalent(const FCDVersion& a, const FCDVersion& b);
00063
00067 bool operator< (const FCDVersion& b) const;
00068
00072 bool operator<= (const FCDVersion& b) const;
00073
00077 inline bool operator> (const FCDVersion& b) const { return b <= *this; }
00078
00082 inline bool operator>= (const FCDVersion& b) const { return b < *this; }
00083 };
00084
00085 #endif // _FCD_VERSION_H_