diff options
| author | jhurst <jhurst@cinecert.com> | 2009-05-18 23:34:18 +0000 |
|---|---|---|
| committer | jhurst <> | 2009-05-18 23:34:18 +0000 |
| commit | fd73a272189d3d121989b8437b7fbe5402160aaa (patch) | |
| tree | d5ae5116fed0ef44db4b9afe3b1e77a7d515a005 /src/KLV.h | |
| parent | b6f407694245e9310cb164b69e54fca32f1cbb8b (diff) | |
working multi-dict
Diffstat (limited to 'src/KLV.h')
| -rwxr-xr-x | src/KLV.h | 16 |
1 files changed, 5 insertions, 11 deletions
@@ -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; |
