X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2FKLV.h;h=9eb230b6d91c663285158ecfa7ae6c65a65d4cd6;hb=dde89765744dad9a6b9d13126092d9bfc2dbc0d7;hp=5fb0b3a3b90fb679e928b911ba8dccbe38a18f18;hpb=9bfe9676115531eb76649e1ebd5e14b904b53ae2;p=asdcplib.git diff --git a/src/KLV.h b/src/KLV.h index 5fb0b3a..9eb230b 100755 --- a/src/KLV.h +++ b/src/KLV.h @@ -72,7 +72,8 @@ namespace ASDCP public: virtual ~IArchive() {} virtual Result_t Unarchive(ASDCP::MemIOReader& Reader) = 0; - virtual Result_t Archive(ASDCP::MemIOWriter& Writer) = 0; + virtual bool HasValue() const = 0; + virtual Result_t Archive(ASDCP::MemIOWriter& Writer) const = 0; }; } // namespace ASDCP @@ -87,7 +88,6 @@ namespace ASDCP TagValue tag; bool optional; const char* name; - const char* detail; }; // @@ -95,6 +95,7 @@ namespace ASDCP { public: 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); @@ -105,6 +106,7 @@ namespace ASDCP } private: + Dict* m_Dict; ASDCP_NO_COPY_CONSTRUCT(Dict); protected: