-
-/**
- * \brief Build a new Val Entry from all the low level arguments.
- * Check for existence of dictionary entry, and build
- * a default one when absent.
- * @param group group number of the underlying DictEntry
- * @param elem element number of the underlying DictEntry
- */
-ValEntry *DocEntrySet::NewValEntryByNumber(uint16_t group,
- uint16_t elem)
-{
- // Find out if the tag we encountered is in the dictionaries:
- DictEntry *dictEntry = GetDictEntryByNumber(group, elem);
- if (!dictEntry)
- {
- dictEntry = NewVirtualDictEntry(group, elem);
- }
-
- ValEntry *newEntry = new ValEntry(dictEntry);
- if (!newEntry)
- {
- dbg.Verbose(1, "Document::NewValEntryByNumber",
- "failed to allocate ValEntry");
- return 0;
- }
- return newEntry;
-}
-
-
-/**
- * \brief Build a new Bin Entry from all the low level arguments.
- * Check for existence of dictionary entry, and build
- * a default one when absent.
- * @param group group number of the underlying DictEntry
- * @param elem element number of the underlying DictEntry
- */
-BinEntry *DocEntrySet::NewBinEntryByNumber(uint16_t group,
- uint16_t elem)
-{
- // Find out if the tag we encountered is in the dictionaries:
- DictEntry *dictEntry = GetDictEntryByNumber(group, elem);
- if (!dictEntry)
- {
- dictEntry = NewVirtualDictEntry(group, elem);
- }
-
- BinEntry *newEntry = new BinEntry(dictEntry);
- if (!newEntry)
- {
- dbg.Verbose(1, "Document::NewBinEntryByNumber",
- "failed to allocate BinEntry");
- return 0;
- }
- return newEntry;
-}
-
-/**
- * \brief Build a new Seq Entry from all the low level arguments.
- * Check for existence of dictionary entry, and build
- * a default one when absent.
- * @param Group group number of the underlying DictEntry
- * @param Elem element number of the underlying DictEntry
- */
-SeqEntry* DocEntrySet::NewSeqEntryByNumber(uint16_t Group,
- uint16_t Elem)
-{
- // Find out if the tag we encountered is in the dictionaries:
- DictEntry* DictEntry = GetDictEntryByNumber( Group, Elem );
- if ( ! DictEntry )
- {
- DictEntry = NewVirtualDictEntry(Group, Elem);
- }
-
- SeqEntry *NewEntry = new SeqEntry( DictEntry );
- if ( !NewEntry )
- {
- dbg.Verbose(1, "Document::NewSeqEntryByNumber",
- "failed to allocate SeqEntry");
- return 0;
- }
- return NewEntry;
-}
-
-//-----------------------------------------------------------------------------
-// Protected
-