summaryrefslogtreecommitdiff
path: root/src/MXFTypes.cpp
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2016-05-09 18:18:42 +0000
committerjhurst <>2016-05-09 18:18:42 +0000
commit2b101472bf1f76db63ae1c97cf5393fe7195bcb1 (patch)
treeedf3c46b53393fc796d02d06130477e485639cc2 /src/MXFTypes.cpp
parentcc05011a20424c6b855995b5965782582ca21c42 (diff)
Defined bool ASDCP::UL::operator<(const UL& rhs) const, which is needed to carry out the version-insensitive lookup policy when searching for ULs in a std::map<> of UL entries.
Diffstat (limited to 'src/MXFTypes.cpp')
-rwxr-xr-xsrc/MXFTypes.cpp68
1 files changed, 67 insertions, 1 deletions
diff --git a/src/MXFTypes.cpp b/src/MXFTypes.cpp
index d4bbf44..9e481e2 100755
--- a/src/MXFTypes.cpp
+++ b/src/MXFTypes.cpp
@@ -1,5 +1,5 @@
/*
-Copyright (c) 2005-2015, John Hurst
+Copyright (c) 2005-2016, John Hurst
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -65,6 +65,72 @@ ASDCP::UL::operator==(const UL& rhs) const
return false;
}
+
+//
+bool
+ASDCP::UL::operator<(const UL& rhs) const
+{
+ if ( m_Value[0] < rhs.m_Value[0] ) return true;
+ if ( m_Value[0] == rhs.m_Value[0] )
+ {
+ if ( m_Value[1] < rhs.m_Value[1] ) return true;
+ if ( m_Value[1] == rhs.m_Value[1] )
+ {
+ if ( m_Value[2] < rhs.m_Value[2] ) return true;
+ if ( m_Value[2] == rhs.m_Value[2] )
+ {
+ if ( m_Value[3] < rhs.m_Value[3] ) return true;
+ if ( m_Value[3] == rhs.m_Value[3] )
+ {
+ if ( m_Value[4] < rhs.m_Value[4] ) return true;
+ if ( m_Value[4] == rhs.m_Value[4] )
+ {
+ if ( m_Value[5] < rhs.m_Value[5] ) return true;
+ if ( m_Value[5] == rhs.m_Value[5] )
+ {
+ if ( m_Value[6] < rhs.m_Value[6] ) return true;
+ if ( m_Value[6] == rhs.m_Value[6] )
+ {
+ if ( m_Value[8] < rhs.m_Value[8] ) return true;
+ if ( m_Value[8] == rhs.m_Value[8] )
+ {
+ if ( m_Value[9] < rhs.m_Value[9] ) return true;
+ if ( m_Value[9] == rhs.m_Value[9] )
+ {
+ if ( m_Value[10] < rhs.m_Value[10] ) return true;
+ if ( m_Value[10] == rhs.m_Value[10] )
+ {
+ if ( m_Value[11] < rhs.m_Value[11] ) return true;
+ if ( m_Value[11] == rhs.m_Value[11] )
+ {
+ if ( m_Value[12] < rhs.m_Value[12] ) return true;
+ if ( m_Value[12] == rhs.m_Value[12] )
+ {
+ if ( m_Value[13] < rhs.m_Value[13] ) return true;
+ if ( m_Value[13] == rhs.m_Value[13] )
+ {
+ if ( m_Value[14] < rhs.m_Value[14] ) return true;
+ if ( m_Value[14] == rhs.m_Value[14] )
+ {
+ if ( m_Value[15] < rhs.m_Value[15] ) return true;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+
+ return false;
+}
+
//
bool
ASDCP::UL::MatchIgnoreStream(const UL& rhs) const