summaryrefslogtreecommitdiff
path: root/src/AS_DCP.h
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2010-02-23 19:27:43 +0000
committerjhurst <>2010-02-23 19:27:43 +0000
commit7ef0e51f98ee95e28dfa18e163ca52e2278bdb00 (patch)
treedd3a79dc9042b71684e50f4cf4ae4d447c4bd3cc /src/AS_DCP.h
parentca98d36fa24505430bdd26011838809e906b23ec (diff)
xercesC 3.x support
Diffstat (limited to 'src/AS_DCP.h')
-rwxr-xr-xsrc/AS_DCP.h12
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