From 65a8ec13b66c700b74788d3fc7525e91cf62bab0 Mon Sep 17 00:00:00 2001 From: jhurst Date: Mon, 18 May 2009 05:18:32 +0000 Subject: massive dictionary re-factoring --- src/Index.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/Index.cpp') diff --git a/src/Index.cpp b/src/Index.cpp index 3bebb1d..e231f8e 100755 --- a/src/Index.cpp +++ b/src/Index.cpp @@ -34,7 +34,8 @@ const ui32_t kl_length = ASDCP::SMPTE_UL_LENGTH + ASDCP::MXF_BER_LENGTH; // -ASDCP::MXF::IndexTableSegment::IndexTableSegment() : +ASDCP::MXF::IndexTableSegment::IndexTableSegment(const Dictionary& d) : + InterchangeObject(d), m_Dict(d), IndexStartPosition(0), IndexDuration(0), EditUnitByteCount(0), IndexSID(129), BodySID(1), SliceCount(0), PosTableCount(0) { @@ -85,7 +86,7 @@ ASDCP::MXF::IndexTableSegment::WriteToTLVSet(TLVWriter& TLVSet) ASDCP::Result_t ASDCP::MXF::IndexTableSegment::InitFromBuffer(const byte_t* p, ui32_t l) { - m_Typeinfo = &Dict::Type(MDD_IndexTableSegment); + m_Typeinfo = &m_Dict.Type(MDD_IndexTableSegment); return InterchangeObject::InitFromBuffer(p, l); } @@ -93,7 +94,7 @@ ASDCP::MXF::IndexTableSegment::InitFromBuffer(const byte_t* p, ui32_t l) ASDCP::Result_t ASDCP::MXF::IndexTableSegment::WriteToBuffer(ASDCP::FrameBuffer& Buffer) { - m_Typeinfo = &Dict::Type(MDD_IndexTableSegment); + m_Typeinfo = &m_Dict.Type(MDD_IndexTableSegment); return InterchangeObject::WriteToBuffer(Buffer); } -- cgit v1.2.3