33 #include "IPMStream.h" 47 fPluginID(kInvalidPlugin)
66 void SetFormat(
const FormatID &format)
67 {SetMajorVersion(format.GetMajorVersion()); SetMinorVersion(format.GetMinorVersion());}
69 bool16 PluginMatches(
const VersionID& other)
const 70 {
return (fPluginID == other.fPluginID) || (fPluginID == kInvalidPlugin) || (other.fPluginID == kInvalidPlugin);}
72 bool16 operator <(
const VersionID& other)
const 73 {
return PluginMatches(other) ? (((
FormatID)*
this) < (
FormatID)other) : (fPluginID < other.fPluginID);}
74 bool16 operator >(
const VersionID& other)
const 75 {
return PluginMatches(other) ? (((
FormatID)*
this) > (
FormatID)other) : (fPluginID > other.fPluginID);}
76 bool16 operator ==(
const VersionID& other)
const 77 {
return PluginMatches(other) ? (((
FormatID)*
this) == (
FormatID)other) : (fPluginID == other.fPluginID);}
78 bool16 operator !=(
const VersionID& other)
const 79 {
return !(*
this == other);}
80 bool16 operator <=(
const VersionID& other)
const 81 {
return !(*
this > other);}
82 bool16 operator >=(
const VersionID& other)
const 83 {
return !(*
this < other);}
86 {FormatID::ReadWrite(s);
93 #endif // __VersionID__