diff options
| author | jhurst <jhurst@cinecert.com> | 2010-02-23 19:27:43 +0000 |
|---|---|---|
| committer | jhurst <> | 2010-02-23 19:27:43 +0000 |
| commit | 7ef0e51f98ee95e28dfa18e163ca52e2278bdb00 (patch) | |
| tree | dd3a79dc9042b71684e50f4cf4ae4d447c4bd3cc /src/AS_DCP.h | |
| parent | ca98d36fa24505430bdd26011838809e906b23ec (diff) | |
xercesC 3.x support
Diffstat (limited to 'src/AS_DCP.h')
| -rwxr-xr-x | src/AS_DCP.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/AS_DCP.h b/src/AS_DCP.h index 9c9165f..a9f8b44 100755 --- a/src/AS_DCP.h +++ b/src/AS_DCP.h @@ -246,6 +246,18 @@ namespace ASDCP { inline bool operator!=(const Rational& rhs) const { return ( rhs.Numerator != Numerator || rhs.Denominator != Denominator ); } + + inline bool operator<(const Rational& rhs) { + if ( Numerator < rhs.Numerator ) return true; + if ( Numerator == rhs.Numerator && Denominator < rhs.Denominator ) return true; + return false; + } + + inline bool operator>(const Rational& rhs) { + if ( Numerator > rhs.Numerator ) return true; + if ( Numerator == rhs.Numerator && Denominator > rhs.Denominator ) return true; + return false; + } }; // common edit rates, use these instead of hard coded constants |
