Primer Class Reference

Holds local tag to metadata definition UL mapping. More...

#include <primer.h>

Inheritance diagram for Primer:

RefCount IRefCount List of all members.

Public Member Functions

 Primer ()
 Reverse lookup for locating a tag for a given UL.
UInt32 ReadValue (const UInt8 *Buffer, UInt32 Size)
 Read the primer from a buffer.
UInt32 WritePrimer (DataChunkPtr &Buffer)
 Write this primer to a memory buffer.
Tag Lookup (ULPtr ItemUL, Tag TryTag=0)
 Determine the tag to use for a given UL.
std::pair< iterator, bool > insert (value_type Val)
 Insert a new child type.

Static Public Member Functions

static Tag StaticLookup (ULPtr ItemUL, Tag TryTag=0)
 Determine the tag to use for a given UL - when no primer is availabe.

Protected Attributes

Tag NextDynamic
std::map< UL, TagTagLookup
 Next dynamic tag to try.

Detailed Description

Holds local tag to metadata definition UL mapping.


Constructor & Destructor Documentation

Primer (  )  [inline]

Reverse lookup for locating a tag for a given UL.


Member Function Documentation

UInt32 ReadValue ( const UInt8 Buffer,
UInt32  Size 
)

Read the primer from a buffer.

Returns:
Number of bytes read

UInt32 WritePrimer ( DataChunkPtr Buffer  ) 

Write this primer to a memory buffer.

The primer will be appended to the DataChunk

Tag Lookup ( ULPtr  ItemUL,
Tag  TryTag = 0 
)

Determine the tag to use for a given UL.

If the UL has not yet been used the correct static or dynamic tag will be determined and added to the primer

Returns:
The tag to use, or 0 if no more dynamic tags available

Out of dynamic tags!

Tag StaticLookup ( ULPtr  ItemUL,
Tag  TryTag = 0 
) [static]

Determine the tag to use for a given UL - when no primer is availabe.

std::pair<iterator, bool> insert ( value_type  Val  )  [inline]

Insert a new child type.


Member Data Documentation

Tag NextDynamic [protected]

std::map<UL, Tag> TagLookup [protected]

Next dynamic tag to try.


The documentation for this class was generated from the following files:
Generated on Mon Apr 2 15:21:01 2007 for MXFLib by  doxygen 1.5.1-p1