summaryrefslogtreecommitdiff
path: root/src/KLV.h
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2009-05-18 23:34:18 +0000
committerjhurst <>2009-05-18 23:34:18 +0000
commitfd73a272189d3d121989b8437b7fbe5402160aaa (patch)
treed5ae5116fed0ef44db4b9afe3b1e77a7d515a005 /src/KLV.h
parentb6f407694245e9310cb164b69e54fca32f1cbb8b (diff)
working multi-dict
Diffstat (limited to 'src/KLV.h')
-rwxr-xr-xsrc/KLV.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/KLV.h b/src/KLV.h
index 1a5c298..ca455fc 100755
--- a/src/KLV.h
+++ b/src/KLV.h
@@ -137,27 +137,21 @@ inline const char* ui64sz(ui64_t i, char* buf)
//
class Dictionary
{
- public:
-#if 0
- 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();
-#endif
-
- private:
std::map<ASDCP::UL, ui32_t> m_md_lookup;
+ std::map<ui32_t, ASDCP::UL> m_md_rev_lookup;
MDDEntry m_MDD_Table[ASDCP::MDD_Table_size];
ASDCP_NO_COPY_CONSTRUCT(Dictionary);
-
public:
Dictionary();
~Dictionary();
+ bool operator==(const Dictionary& rhs) const { return this == &rhs; }
+
+ void Init();
bool AddEntry(const MDDEntry& Entry, ui32_t index);
+ bool DeleteEntry(ui32_t index);
const MDDEntry* FindUL(const byte_t*) const;
const MDDEntry& Type(MDD_t type_id) const;