summaryrefslogtreecommitdiff
path: root/src/KLV.h
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2006-04-29 23:26:05 +0000
committerjhurst <>2006-04-29 23:26:05 +0000
commit7c33dd683c5ef79630ae3bd5e1f8f8057d591388 (patch)
tree8858319568a81e9a9b5d61b42679635cf7bc5c88 /src/KLV.h
parent149c8628c287436f6127de1870462a03efbc1840 (diff)
Kumu updates
Diffstat (limited to 'src/KLV.h')
-rwxr-xr-xsrc/KLV.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/KLV.h b/src/KLV.h
index 9c274bf..ba291b6 100755
--- a/src/KLV.h
+++ b/src/KLV.h
@@ -98,19 +98,14 @@ inline const char* ui64sz(ui64_t i, char* buf)
{
public:
UL() {}
- UL(const byte_t* rhs) {
- assert(rhs);
- Set(rhs);
- }
-
- UL(const UL& rhs) {
- Set(rhs.m_Value);
- }
-
+ UL(const UL& rhs) : Kumu::Identifier<SMPTE_UL_LENGTH>(rhs) {}
+ UL(const byte_t* value) : Kumu::Identifier<SMPTE_UL_LENGTH>(value) {}
virtual ~UL() {}
- bool operator==(const UL& rhs) const {
- return ( memcmp(m_Value, rhs.m_Value, SMPTE_UL_LENGTH) == 0 ) ? true : false;
+ const UL& operator=(const UL& rhs) {
+ if ( m_HasValue = rhs.m_HasValue )
+ memcpy(m_Value, rhs.m_Value, SMPTE_UL_LENGTH);
+ return *this;
}
const char* EncodeString(char* str_buf, ui32_t buf_len) const;
@@ -121,11 +116,16 @@ inline const char* ui64sz(ui64_t i, char* buf)
{
public:
UMID() {}
- UMID(const UMID &rhs) {
- Set(rhs.m_Value);
- };
+ UMID(const UMID& rhs) : Kumu::Identifier<SMPTE_UMID_LENGTH>(rhs) {}
+ UMID(const byte_t* value) : Kumu::Identifier<SMPTE_UMID_LENGTH>(value) {}
virtual ~UMID() {}
+ const UMID& operator=(const UMID& rhs) {
+ if ( m_HasValue = rhs.m_HasValue )
+ memcpy(m_Value, rhs.m_Value, SMPTE_UMID_LENGTH);
+ return *this;
+ }
+
void MakeUMID(int Type);
void MakeUMID(int Type, const UUID& ID);
const char* EncodeString(char* str_buf, ui32_t buf_len) const;