summaryrefslogtreecommitdiff
path: root/src/KLV.h
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2009-05-18 16:24:44 +0000
committerjhurst <>2009-05-18 16:24:44 +0000
commitb6f407694245e9310cb164b69e54fca32f1cbb8b (patch)
treeee1f4f42930ad951359b45cce0ccada3a98d896c /src/KLV.h
parent65a8ec13b66c700b74788d3fc7525e91cf62bab0 (diff)
oi
Diffstat (limited to 'src/KLV.h')
-rwxr-xr-xsrc/KLV.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/KLV.h b/src/KLV.h
index e9d0374..1a5c298 100755
--- a/src/KLV.h
+++ b/src/KLV.h
@@ -36,6 +36,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <KM_memio.h>
#include "AS_DCP.h"
#include "MDD.h"
+#include <map>
namespace ASDCP
@@ -138,20 +139,17 @@ inline const char* ui64sz(ui64_t i, char* buf)
{
public:
#if 0
- static const MDDEntry* FindUL(const byte_t*);
static const MDDEntry* FindName(const char*);
static const MDDEntry& Type(MDD_t type_id);
static bool Replace(const MDDEntry& Entry);
static void Restore(const byte_t* ul);
static void RestoreAll();
-
- inline static const byte_t* ul(MDD_t type_id) {
- return Type(type_id).ul;
- }
#endif
private:
- // Dictionary* m_Dict;
+ std::map<ASDCP::UL, ui32_t> m_md_lookup;
+ MDDEntry m_MDD_Table[ASDCP::MDD_Table_size];
+
ASDCP_NO_COPY_CONSTRUCT(Dictionary);
@@ -159,13 +157,16 @@ inline const char* ui64sz(ui64_t i, char* buf)
Dictionary();
~Dictionary();
+ bool AddEntry(const MDDEntry& Entry, ui32_t index);
+
const MDDEntry* FindUL(const byte_t*) const;
+ const MDDEntry& Type(MDD_t type_id) const;
inline const byte_t* ul(MDD_t type_id) const {
return Type(type_id).ul;
}
- const MDDEntry& Type(MDD_t type_id) const;
+ void Dump(FILE* = 0) const;
};