ADTF
|
Main class representing a whole DDL description. More...
Public Member Functions | |
cDDLDescription (cDDLHeader *poHeader, const tDDLUnitVec &vecDDLUnits=tDDLUnitVec(), const tDDLBaseunitVec &vecDDLBaseunits=tDDLBaseunitVec(), const tDDLPrefixVec &vecDDLPrefixes=tDDLPrefixVec(), const tDDLDTVec &vecDTs=tDDLDTVec(), const tDDLComplexVec &vecStructs=tDDLComplexVec(), const tDDLStreamVec &vecStreams=tDDLStreamVec(), const tDDLEnumVec &vecEnums=tDDLEnumVec(), bool bMergeDefaults=true) | |
CTOR. More... | |
virtual | ~cDDLDescription () |
DTOR. | |
tResult | Accept (IDDLVisitor *poVisitor) |
Acceptance method for Visitor design-pattern. More... | |
bool | IsInitialized () const |
Getter for the initialization flag. More... | |
const A_UTILS_NS::cString & | GetName () const |
Getter for the name of the representation object. More... | |
tResult | Create (cDDLHeader *poHeader, tDDLUnitVec vecDDLUnits=tDDLUnitVec(), tDDLBaseunitVec vecDDLBaseunits=tDDLBaseunitVec(), tDDLPrefixVec vecDDLPrefixes=tDDLPrefixVec(), tDDLDTVec vecDTs=tDDLDTVec(), tDDLComplexVec vecStructs=tDDLComplexVec(), tDDLStreamVec vecStreams=tDDLStreamVec(), tDDLEnumVec vecEnums=tDDLEnumVec()) |
Creation method to fill the object with data. More... | |
cDDLHeader * | GetHeader () const |
Getter for the DDL header. More... | |
void | CloneUnits (const tDDLUnitVec &vecDDLUnits) |
Setter for the units. More... | |
void | RefUnits (tDDLUnitVec &vecDDLUnits) |
Setter for the units. More... | |
void | MergeUnits (tDDLUnitVec vecDDLUnits, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL) |
Merger for the units. More... | |
void | AddUnit (cDDLUnit *poUnit, int nPos=-1) |
Adder for an unit object. More... | |
tDDLUnitVec & | GetUnits () |
Getter for the units. More... | |
const tDDLUnitVec & | GetUnits () const |
Getter for the units. More... | |
const cDDLUnit * | GetUnitByName (const A_UTILS_NS::cString &strName) const |
Getter for a specific unit object. More... | |
cDDLUnit * | GetUnitByName (const A_UTILS_NS::cString &strName) |
Getter for a specific unit object. More... | |
void | CloneBaseunits (const tDDLBaseunitVec &vecDDLBaseunits) |
Setter for the baseunits. More... | |
void | RefBaseunits (tDDLBaseunitVec &vecDDLBaseunits) |
Setter for the baseunits. More... | |
void | MergeBaseunits (tDDLBaseunitVec vecDDLBaseunits, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL) |
Merger for the baseunits. More... | |
void | AddBaseunit (cDDLBaseunit *poBaseunit, int nPos=-1) |
Adder for a baseunit object. More... | |
tDDLBaseunitVec | GetBaseunits () const |
Getter for the baseunits. More... | |
const cDDLBaseunit * | GetBaseunitByName (const A_UTILS_NS::cString &strName) const |
Getter for a specific baseunit object. More... | |
cDDLBaseunit * | GetBaseunitByName (const A_UTILS_NS::cString &strName) |
Getter for a specific baseunit object. More... | |
void | ClonePrefixes (const tDDLPrefixVec &vecDDLPrefixes) |
Setter for the prefixes. More... | |
void | RefPrefixes (tDDLPrefixVec &vecDDLPrefixes) |
Setter for the prefixes. More... | |
void | MergePrefixes (tDDLPrefixVec vecDDLPrefixes, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL) |
Merger for the prefixes. More... | |
void | AddPrefix (cDDLPrefix *poPrefix, int nPos=-1) |
Adder for a prefix object. More... | |
tDDLPrefixVec | GetPrefixes () const |
Getter for the prefixes. More... | |
cDDLPrefix * | GetPrefixByName (const A_UTILS_NS::cString &strName) |
Getter for a specific prefix object. More... | |
const cDDLPrefix * | GetPrefixByName (const A_UTILS_NS::cString &strName) const |
Getter for a specific prefix object. More... | |
void | CloneDatatypes (const tDDLDTVec &vecDDLDataTypes) |
Setter for the data types. More... | |
void | RefDatatypes (tDDLDTVec &vecDDLDataTypes) |
Setter for the data types. More... | |
void | RefEnums (tDDLEnumVec &vecDDLEnum) |
Setter for the constants. More... | |
void | MergeEnums (tDDLEnumVec vecDDLEnum, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL) |
Merger for the constants. More... | |
void | CloneEnums (const tDDLEnumVec &vecDDLEnums) |
Setter for the enums. More... | |
void | AddEnum (cDDLEnum *poEnum, int nPos=-1) |
Adder for a enum object. More... | |
cDDLEnum * | GetEnumByName (const A_UTILS_NS::cString &strName) |
Getter for a specific enum object. More... | |
const cDDLEnum * | GetEnumByName (const A_UTILS_NS::cString &strName) const |
Getter for a specific enum object. More... | |
void | MergeDatatypes (tDDLDTVec vecDDLDataTypes, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL) |
Merger for the data types. More... | |
void | AddDatatype (cDDLDataType *poDatatype, int nPos=-1) |
Adder for a datatype object. More... | |
tDDLDTVec & | GetDatatypes () |
Getter for the datatypes. More... | |
const tDDLDTVec & | GetDatatypes () const |
Getter for the datatypes. More... | |
tDDLEnumVec & | GetEnums () |
Getter for the enums. More... | |
const tDDLEnumVec & | GetEnums () const |
Getter for the enums. More... | |
cDDLDataType * | GetDataTypeByName (const A_UTILS_NS::cString &strName) |
Getter for a specific data-type object. More... | |
const cDDLDataType * | GetDataTypeByName (const A_UTILS_NS::cString &strName) const |
Getter for a specific data-type object. More... | |
void | CloneStructs (const tDDLComplexVec &vecStructs) |
Setter for the complex datatypes. More... | |
void | RefStructs (tDDLComplexVec &vecStructs) |
Setter for the complex datatypes. More... | |
void | MergeStructs (tDDLComplexVec vecStructs, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL) |
Merger for the complex datatypes. More... | |
void | AddStruct (cDDLComplex *poStruct, int nPos=-1) |
Adder for a complex datatype object. More... | |
tDDLComplexVec & | GetStructs () |
Getter for the complex datatypes. More... | |
const tDDLComplexVec & | GetStructs () const |
Getter for the complex datatypes. More... | |
const cDDLComplex * | GetStructByName (const A_UTILS_NS::cString &strName) const |
Getter for a specific struct object. More... | |
cDDLComplex * | GetStructByName (const A_UTILS_NS::cString &strName) |
Getter for a specific struct object. More... | |
tResult | RemoveType (const A_UTILS_NS::cString &strName) |
Removes the specified primitive or complex data-type. More... | |
tResult | RemoveDataType (const A_UTILS_NS::cString &strName) |
Removes the specified primitive data-type. More... | |
tResult | RemoveComplexDataType (const A_UTILS_NS::cString &strName) |
Removes the specified complex data-type. More... | |
tResult | MoveHeaderExcDec (const int nFrom, const int nTo) |
Method moves the specified external header declaration. More... | |
tResult | MoveBaseunit (const int nFrom, const int nTo) |
Method moves the specified base unit. More... | |
tResult | MovePrefix (const int nFrom, const int nTo) |
Method moves the specified prefix. More... | |
tResult | MoveUnit (const int nFrom, const int nTo) |
Method moves the specified unit. More... | |
tResult | MoveRefUnit (const int nFrom, const int nTo, const A_UTILS_NS::cString &strParent) |
Method moves the specified element within a unit. More... | |
tResult | MoveEnum (const int nFrom, const int nTo) |
Method moves the specified enum-type. More... | |
tResult | MoveEnumElement (const int nFrom, const int nTo, const A_UTILS_NS::cString &strParent) |
Method moves the specified enum element. More... | |
tResult | MoveDatatype (const int nFrom, const int nTo) |
Method moves the specified data-type. More... | |
tResult | MoveComplexDataType (const int nFrom, const int nTo) |
Method moves the specified complex data-type. More... | |
tResult | MoveComplexDataTypeElement (const int nFrom, const int nTo, const A_UTILS_NS::cString &strParent) |
Method moves the specified element within complex data-type. More... | |
tResult | MoveStream (const int nFrom, const int nTo) |
Method moves the specified stream. More... | |
tResult | RemoveBaseunit (const A_UTILS_NS::cString &strName) |
Removes the specified BaseUnit type. More... | |
tResult | RemovePrefix (const A_UTILS_NS::cString &strName) |
Removes the specified Unit type. More... | |
tResult | RemoveUnit (const A_UTILS_NS::cString &strName) |
Removes the specified Unit type. More... | |
tResult | RemoveEnum (const A_UTILS_NS::cString &strName) |
Removes the specified enum. More... | |
void | CloneStreams (const tDDLStreamVec &vecStreams) |
Setter for the streams. More... | |
void | RefStreams (tDDLStreamVec &vecStreams) |
Setter for the streams. More... | |
void | MergeStreams (tDDLStreamVec vecStreams, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL) |
Merger for the streams. More... | |
void | AddStream (cDDLStream *poStream, int nPos=-1) |
Adder for a stream object. More... | |
tDDLStreamVec & | GetStreams () |
Getter for the streams. More... | |
const tDDLStreamVec & | GetStreams () const |
Getter for the streams. More... | |
cDDLStream * | GetStreamByName (const A_UTILS_NS::cString &strName) |
Getter for a specific stream object. More... | |
const cDDLStream * | GetStreamByName (const A_UTILS_NS::cString &strName) const |
Getter for a specific stream object. More... | |
tResult | RenameStream (const A_UTILS_NS::cString &strOldName, const A_UTILS_NS::cString &strNewName) |
Renames the specified stream. More... | |
tResult | RemoveStream (const A_UTILS_NS::cString &strName) |
Removes the specified stream from the description. More... | |
void | CloneStreamMetaTypes (const tDDLStreamMetaTypeVec &vecStreams) |
Setter for the streams. More... | |
void | RefStreamMetaTypes (tDDLStreamMetaTypeVec &vecStreams) |
Setter for the streams. More... | |
void | MergeStreamMetaTypes (tDDLStreamMetaTypeVec vecStreams, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL) |
Merger for the streams. More... | |
void | AddStreamMetaType (cDDLStreamMetaType *poStream, int nPos=-1) |
Adder for a stream object. More... | |
tDDLStreamMetaTypeVec & | GetStreamMetaTypes () |
Getter for the streams. More... | |
const tDDLStreamMetaTypeVec & | GetStreamMetaTypes () const |
Getter for the streams. More... | |
cDDLStreamMetaType * | GetStreamMetaTypeByName (const A_UTILS_NS::cString &strName) |
Getter for a specific stream object. More... | |
const cDDLStreamMetaType * | GetStreamMetaTypeByName (const A_UTILS_NS::cString &strName) const |
Getter for a specific stream object. More... | |
tResult | RenameStreamMetaType (const A_UTILS_NS::cString &strOldName, const A_UTILS_NS::cString &strNewName) |
Renames the specified stream. More... | |
tResult | RemoveStreamMetaType (const A_UTILS_NS::cString &strName) |
Removes the specified stream from the description. More... | |
tResult | Merge (cDDLDescription &oDDL, uint32_t ui32JoinFlags=0) |
Merges another DDL into this one. More... | |
tResult | RestoreLevel (int const nLevel) |
Deprecated, see IMediaDescriptionStack for the mechanism provided by the Media Description Service that superseeds this functionality. More... | |
Public Member Functions inherited from cDDL | |
virtual | ~cDDL () |
DTOR. | |
virtual bool | IsPredefined () const |
Getter for the predefinition flag. More... | |
virtual bool | IsOverwriteable () const |
Getter for the predefinition flag. More... | |
virtual int | GetCreationLevel () const |
Getter for the creation level. More... | |
Public Member Functions inherited from IDDL | |
virtual | ~IDDL () |
Virtual DTOR. | |
Static Public Member Functions | |
static cDDLDescription * | CreateDefault (int const nCreationLevel=1, bool bSorted=true) |
Method to create a default DDL description. More... | |
static cDDLDescription * | CreateDefault (double fVersion, int const nCreationLevel, bool bSorted=true) |
Overloaded method. More... | |
Static Public Member Functions inherited from cDDL | |
template<typename T > | |
static T * | DeleteChild (T *pvObj) |
Functor for use with std::transform() to delete all objects where the elements of a vector point at. More... | |
template<typename T > | |
static tResult | MoveChild (T *pvObj, const int nFrom, const int nTo) |
Method moves element within the list. More... | |
template<typename T > | |
static T * | Clone (T *pvObj) |
Functor for use with std::transform() to clone the objects where the elements of a vector point at. More... | |
template<typename T > | |
static T * | Ref (T *pvObj) |
Functor for use with std::transform() to ref the objects where the elements of a vector point at, this is for the Always_there. More... | |
static bool | IsEqual (IDDL *poLHS, IDDL *poRHS) |
Predicate to compare 2 DDL representation objects (for use with std::unique() ). More... | |
static bool | IsSorted (IDDL *poLHS, IDDL *poRHS) |
Sort predicate to compare to 2 DDL representation objects (for use with std::sort() ). More... | |
Private Member Functions | |
cDDLDescription () | |
Hidden default CTOR. | |
Static Private Member Functions | |
template<typename T > | |
static bool | MergePart (cDDLContainer< T > &vecMemberData, cDDLContainer< T > &vecOtherData, uint32_t ui32JoinFlags, tDDLVec *pvecDeleteDataMem, cDDLDescription *pDesc, const bool &bRefs, const bool &bDeleteNonOverwritten=false) |
Helper method to merge a vector of representation objects into the according vector inside another DDL description. More... | |
Private Attributes | |
cDDLHeader * | m_poHeader |
tDDLUnitVec | m_vecDDLUnits |
tDDLBaseunitVec | m_vecDDLBaseunits |
tDDLPrefixVec | m_vecDDLPrefixes |
tDDLDTVec | m_vecDDLDataTypes |
tDDLEnumVec | m_vecDDLEnums |
tDDLComplexVec | m_vecStructs |
tDDLStreamVec | m_vecStreams |
tDDLStreamMetaTypeVec | m_vecStreamMetaTypes |
bool | m_bInitFlag |
bool | m_bMergeDefaults |
Additional Inherited Members | |
Public Types inherited from IDDL | |
enum | tag_MergeFlags { DDLMERGE_ForceOverwrite = 0x01 } |
Flags for Merging. | |
Main class representing a whole DDL description.
Definition at line 17 of file ddldescription.h.
cDDLDescription | ( | cDDLHeader * | poHeader, |
const tDDLUnitVec & | vecDDLUnits = tDDLUnitVec() , |
||
const tDDLBaseunitVec & | vecDDLBaseunits = tDDLBaseunitVec() , |
||
const tDDLPrefixVec & | vecDDLPrefixes = tDDLPrefixVec() , |
||
const tDDLDTVec & | vecDTs = tDDLDTVec() , |
||
const tDDLComplexVec & | vecStructs = tDDLComplexVec() , |
||
const tDDLStreamVec & | vecStreams = tDDLStreamVec() , |
||
const tDDLEnumVec & | vecEnums = tDDLEnumVec() , |
||
bool | bMergeDefaults = true |
||
) |
CTOR.
[in] | poHeader | - Pointer to Header object |
[in] | vecDDLUnits | - Vector of units (optional) |
[in] | vecDDLBaseunits | - Vector of baseunits (optional) |
[in] | vecDDLPrefixes | - Vector of prefixes (optional) |
[in] | vecDTs | - Vector of datatypes (optional) |
[in] | vecStructs | - Vector of complex datatypes (optional) |
[in] | vecStreams | - Vector of streams (optional) |
[in] | vecEnums | - Vector of enums (optional) |
[in] | bMergeDefaults | Whether or not to merge DDL default elements (datatypes etc.). |
|
virtual |
Acceptance method for Visitor design-pattern.
[in] | poVisitor | - Pointer to Visitor instance |
ERR_POINTER | Null-pointer committed |
ERR_NOT_FOUND | Required node not found. |
ERR_NOT_INITIALIZED | The object was not or not correctly initialized |
Implements IDDL.
void AddBaseunit | ( | cDDLBaseunit * | poBaseunit, |
int | nPos = -1 |
||
) |
Adder for a baseunit object.
[in] | poBaseunit | - Pointer to the baseunit object to add |
[in] | nPos | - Position to add the baseunit object |
void AddDatatype | ( | cDDLDataType * | poDatatype, |
int | nPos = -1 |
||
) |
Adder for a datatype object.
[in] | poDatatype | - Pointer to the datatype object to add |
[in] | nPos | - Position to add the datatype object |
void AddEnum | ( | cDDLEnum * | poEnum, |
int | nPos = -1 |
||
) |
Adder for a enum object.
[in] | poEnum | - Pointer to the enum object to add |
[in] | nPos | - Position to add the enum object |
void AddPrefix | ( | cDDLPrefix * | poPrefix, |
int | nPos = -1 |
||
) |
Adder for a prefix object.
[in] | poPrefix | - Pointer to the prefix object to add |
[in] | nPos | - Position to add the prefix object |
void AddStream | ( | cDDLStream * | poStream, |
int | nPos = -1 |
||
) |
Adder for a stream object.
[in] | poStream | - Pointer to the stream object to add |
[in] | nPos | - Position to add the stream object |
void AddStreamMetaType | ( | cDDLStreamMetaType * | poStream, |
int | nPos = -1 |
||
) |
Adder for a stream object.
[in] | poStream | - Pointer to the stream object to add |
[in] | nPos | - Position to add the stream object |
void AddStruct | ( | cDDLComplex * | poStruct, |
int | nPos = -1 |
||
) |
Adder for a complex datatype object.
[in] | poStruct | - Pointer to the complex datatype object to add |
[in] | nPos | - Position to add the complex datatype object |
void AddUnit | ( | cDDLUnit * | poUnit, |
int | nPos = -1 |
||
) |
Adder for an unit object.
[in] | poUnit | - Pointer to the unit object to add |
[in] | nPos | - Position to add the unit object |
void CloneBaseunits | ( | const tDDLBaseunitVec & | vecDDLBaseunits | ) |
Setter for the baseunits.
[in] | vecDDLBaseunits | - Vector of baseunit objects |
void CloneDatatypes | ( | const tDDLDTVec & | vecDDLDataTypes | ) |
Setter for the data types.
[in] | vecDDLDataTypes | - Vector of datatypes |
void CloneEnums | ( | const tDDLEnumVec & | vecDDLEnums | ) |
Setter for the enums.
[in] | vecDDLEnums | - Vector of enums |
void ClonePrefixes | ( | const tDDLPrefixVec & | vecDDLPrefixes | ) |
Setter for the prefixes.
[in] | vecDDLPrefixes | - Vector of prefix objects |
void CloneStreamMetaTypes | ( | const tDDLStreamMetaTypeVec & | vecStreams | ) |
Setter for the streams.
[in] | vecStreams | - Vector of streams |
void CloneStreams | ( | const tDDLStreamVec & | vecStreams | ) |
Setter for the streams.
[in] | vecStreams | - Vector of streams |
void CloneStructs | ( | const tDDLComplexVec & | vecStructs | ) |
Setter for the complex datatypes.
[in] | vecStructs | - Vector of complex datatypes |
void CloneUnits | ( | const tDDLUnitVec & | vecDDLUnits | ) |
Setter for the units.
[in] | vecDDLUnits | - Vector of unit objects |
tResult Create | ( | cDDLHeader * | poHeader, |
tDDLUnitVec | vecDDLUnits = tDDLUnitVec() , |
||
tDDLBaseunitVec | vecDDLBaseunits = tDDLBaseunitVec() , |
||
tDDLPrefixVec | vecDDLPrefixes = tDDLPrefixVec() , |
||
tDDLDTVec | vecDTs = tDDLDTVec() , |
||
tDDLComplexVec | vecStructs = tDDLComplexVec() , |
||
tDDLStreamVec | vecStreams = tDDLStreamVec() , |
||
tDDLEnumVec | vecEnums = tDDLEnumVec() |
||
) |
Creation method to fill the object with data.
[in] | poHeader | - Pointer to Header object |
[in] | vecDDLUnits | - Vector of units (optional) |
[in] | vecDDLBaseunits | - Vector of baseunits (optional) |
[in] | vecDDLPrefixes | - Vector of prefixes (optional) |
[in] | vecDTs | - Vector of datatypes (optional) |
[in] | vecStructs | - Vector of complex datatypes (optional) |
[in] | vecStreams | - Vector of streams (optional) |
[in] | vecEnums | - Vector of enums (optional) |
ERR_POINTER | Null-pointer committed |
|
static |
Overloaded method.
Method to create a default DDL description.
[in] | nCreationLevel | Creation level to use (optional) |
[in] | bSorted | Sorts all DDL items by name for better performance. (optional) |
[in] | fVersion | The version of the description. Pass 0 to get the newest version. |
|
static |
Method to create a default DDL description.
[in] | nCreationLevel | Creation level to use (optional) |
[in] | bSorted | Sorts all DDL items by name for better performance. (optional) |
cDDLBaseunit* GetBaseunitByName | ( | const A_UTILS_NS::cString & | strName | ) |
Getter for a specific baseunit object.
[in] | strName | - Name of the baseunit to look for |
NULL
if not found const cDDLBaseunit* GetBaseunitByName | ( | const A_UTILS_NS::cString & | strName | ) | const |
Getter for a specific baseunit object.
[in] | strName | - Name of the baseunit to look for |
NULL
if not found tDDLBaseunitVec GetBaseunits | ( | ) | const |
Getter for the baseunits.
cDDLDataType* GetDataTypeByName | ( | const A_UTILS_NS::cString & | strName | ) |
Getter for a specific data-type object.
[in] | strName | - Name of the data type to look for |
NULL
if not found const cDDLDataType* GetDataTypeByName | ( | const A_UTILS_NS::cString & | strName | ) | const |
Getter for a specific data-type object.
[in] | strName | - Name of the data type to look for |
NULL
if not found tDDLDTVec& GetDatatypes | ( | ) |
Getter for the datatypes.
const tDDLDTVec& GetDatatypes | ( | ) | const |
Getter for the datatypes.
cDDLEnum* GetEnumByName | ( | const A_UTILS_NS::cString & | strName | ) |
Getter for a specific enum object.
[in] | strName | - Name of the enum to look for |
NULL
if not found const cDDLEnum* GetEnumByName | ( | const A_UTILS_NS::cString & | strName | ) | const |
Getter for a specific enum object.
[in] | strName | - Name of the enum to look for |
NULL
if not found tDDLEnumVec& GetEnums | ( | ) |
Getter for the enums.
const tDDLEnumVec& GetEnums | ( | ) | const |
Getter for the enums.
cDDLHeader* GetHeader | ( | ) | const |
Getter for the DDL header.
|
virtual |
cDDLPrefix* GetPrefixByName | ( | const A_UTILS_NS::cString & | strName | ) |
Getter for a specific prefix object.
[in] | strName | - Name of the prefix to look for |
NULL
if not found const cDDLPrefix* GetPrefixByName | ( | const A_UTILS_NS::cString & | strName | ) | const |
Getter for a specific prefix object.
[in] | strName | - Name of the prefix to look for |
NULL
if not found tDDLPrefixVec GetPrefixes | ( | ) | const |
Getter for the prefixes.
cDDLStream* GetStreamByName | ( | const A_UTILS_NS::cString & | strName | ) |
Getter for a specific stream object.
[in] | strName | - Name of the stream to look for |
NULL
if not found const cDDLStream* GetStreamByName | ( | const A_UTILS_NS::cString & | strName | ) | const |
Getter for a specific stream object.
[in] | strName | - Name of the stream to look for |
NULL
if not found cDDLStreamMetaType* GetStreamMetaTypeByName | ( | const A_UTILS_NS::cString & | strName | ) |
Getter for a specific stream object.
[in] | strName | - Name of the stream to look for |
NULL
if not found const cDDLStreamMetaType* GetStreamMetaTypeByName | ( | const A_UTILS_NS::cString & | strName | ) | const |
Getter for a specific stream object.
[in] | strName | - Name of the stream to look for |
NULL
if not found tDDLStreamMetaTypeVec& GetStreamMetaTypes | ( | ) |
Getter for the streams.
const tDDLStreamMetaTypeVec& GetStreamMetaTypes | ( | ) | const |
Getter for the streams.
tDDLStreamVec& GetStreams | ( | ) |
Getter for the streams.
const tDDLStreamVec& GetStreams | ( | ) | const |
Getter for the streams.
cDDLComplex* GetStructByName | ( | const A_UTILS_NS::cString & | strName | ) |
Getter for a specific struct object.
[in] | strName | - Name of the struct to look for |
NULL
if not found const cDDLComplex* GetStructByName | ( | const A_UTILS_NS::cString & | strName | ) | const |
Getter for a specific struct object.
[in] | strName | - Name of the struct to look for |
NULL
if not found tDDLComplexVec& GetStructs | ( | ) |
Getter for the complex datatypes.
const tDDLComplexVec& GetStructs | ( | ) | const |
Getter for the complex datatypes.
cDDLUnit* GetUnitByName | ( | const A_UTILS_NS::cString & | strName | ) |
Getter for a specific unit object.
[in] | strName | - Name of the unit to look for |
NULL
if not found const cDDLUnit* GetUnitByName | ( | const A_UTILS_NS::cString & | strName | ) | const |
Getter for a specific unit object.
[in] | strName | - Name of the unit to look for |
NULL
if not found tDDLUnitVec& GetUnits | ( | ) |
Getter for the units.
const tDDLUnitVec& GetUnits | ( | ) | const |
Getter for the units.
|
virtual |
Getter for the initialization flag.
true | The object was initialized correctly |
false | The object was not or not correctly initialized |
Reimplemented from cDDL.
tResult Merge | ( | cDDLDescription & | oDDL, |
uint32_t | ui32JoinFlags = 0 |
||
) |
Merges another DDL into this one.
[in] | oDDL | - Reference to DDL object to merge into this object |
[in] | ui32JoinFlags | - Additional flags for join/merge process (optional) |
ERR_INVALID_VERSION | Incompatible DDL descriptions detected (not the same DDL version) |
void MergeBaseunits | ( | tDDLBaseunitVec | vecDDLBaseunits, |
uint32_t | ui32JoinFlags = 0 , |
||
tDDLVec * | pvecDeleteData = NULL |
||
) |
Merger for the baseunits.
[in] | vecDDLBaseunits | - Vector of baseunit objects |
[in] | ui32JoinFlags | - Additional flags for join/merge process (optional) |
[in,out] | pvecDeleteData | - temporary vector for data that can be deleted afterwards. |
void MergeDatatypes | ( | tDDLDTVec | vecDDLDataTypes, |
uint32_t | ui32JoinFlags = 0 , |
||
tDDLVec * | pvecDeleteData = NULL |
||
) |
Merger for the data types.
[in] | vecDDLDataTypes | - Vector of datatypes |
[in] | ui32JoinFlags | - Additional flags for join/merge process (optional) |
[in,out] | pvecDeleteData | - temporary vector for data that can be deleted afterwards. |
void MergeEnums | ( | tDDLEnumVec | vecDDLEnum, |
uint32_t | ui32JoinFlags = 0 , |
||
tDDLVec * | pvecDeleteData = NULL |
||
) |
Merger for the constants.
[in] | vecDDLEnum | - Vector of constants |
[in] | ui32JoinFlags | - Additional flags for join/merge process (optional) |
[in,out] | pvecDeleteData | - temporary vector for data that can be deleted afterwards. |
|
staticprivate |
Helper method to merge a vector of representation objects into the according vector inside another DDL description.
T | - Representation object type (e.g. cDDLUnit) |
[in] | vecMemberData | - Vector of objects to merge into |
[in] | vecOtherData | - Vector of objects to merge |
[in] | ui32JoinFlags | - Additional flags for join/merge process (optional) |
[in] | pvecDeleteDataMem | - pointer to Vector of Object that can be deleted |
[in] | pDesc | |
[in] | bRefs | - Add references or clone |
[in] | bDeleteNonOverwritten | - default value is false |
true | if vecMemberData was updated |
false | otherwise |
void MergePrefixes | ( | tDDLPrefixVec | vecDDLPrefixes, |
uint32_t | ui32JoinFlags = 0 , |
||
tDDLVec * | pvecDeleteData = NULL |
||
) |
Merger for the prefixes.
[in] | vecDDLPrefixes | - Vector of prefix objects |
[in] | ui32JoinFlags | - Additional flags for join/merge process (optional) |
[in,out] | pvecDeleteData | - temporary vector for data that can be deleted afterwards. |
void MergeStreamMetaTypes | ( | tDDLStreamMetaTypeVec | vecStreams, |
uint32_t | ui32JoinFlags = 0 , |
||
tDDLVec * | pvecDeleteData = NULL |
||
) |
Merger for the streams.
[in] | vecStreams | - Vector of stream objects |
[in] | ui32JoinFlags | - Additional flags for join/merge process (optional) |
[in,out] | pvecDeleteData | - temporary vector for data that can be deleted afterwards. |
void MergeStreams | ( | tDDLStreamVec | vecStreams, |
uint32_t | ui32JoinFlags = 0 , |
||
tDDLVec * | pvecDeleteData = NULL |
||
) |
Merger for the streams.
[in] | vecStreams | - Vector of stream objects |
[in] | ui32JoinFlags | - Additional flags for join/merge process (optional) |
[in,out] | pvecDeleteData | - temporary vector for data that can be deleted afterwards. |
void MergeStructs | ( | tDDLComplexVec | vecStructs, |
uint32_t | ui32JoinFlags = 0 , |
||
tDDLVec * | pvecDeleteData = NULL |
||
) |
Merger for the complex datatypes.
[in] | vecStructs | - Vector of complex datatypes |
[in] | ui32JoinFlags | - Additional flags for join/merge process (optional) |
[in,out] | pvecDeleteData | - temporary vector for data that can be deleted afterwards. |
void MergeUnits | ( | tDDLUnitVec | vecDDLUnits, |
uint32_t | ui32JoinFlags = 0 , |
||
tDDLVec * | pvecDeleteData = NULL |
||
) |
Merger for the units.
[in] | vecDDLUnits | - Vector of unit objects |
[in] | ui32JoinFlags | - Additional flags for join/merge process (optional) |
[in] | pvecDeleteData | - deletion vector for optimezed deletion |
tResult MoveBaseunit | ( | const int | nFrom, |
const int | nTo | ||
) |
Method moves the specified base unit.
[in] | nFrom | - Current element position in the list |
[in] | nTo | - New element position in the list |
ERR_OUT_OF_RANGE | Input parameters are out of range. |
tResult MoveComplexDataType | ( | const int | nFrom, |
const int | nTo | ||
) |
Method moves the specified complex data-type.
[in] | nFrom | - Current element position in the list |
[in] | nTo | - New element position in the list |
ERR_OUT_OF_RANGE | Input parameters are out of range. |
tResult MoveComplexDataTypeElement | ( | const int | nFrom, |
const int | nTo, | ||
const A_UTILS_NS::cString & | strParent | ||
) |
Method moves the specified element within complex data-type.
[in] | nFrom | - Current element position in the list |
[in] | nTo | - New element position in the list |
[in] | strParent | - Name of parent element |
ERR_OUT_OF_RANGE | Input parameters are out of range. |
tResult MoveDatatype | ( | const int | nFrom, |
const int | nTo | ||
) |
Method moves the specified data-type.
[in] | nFrom | - Current element position in the list |
[in] | nTo | - New element position in the list |
ERR_OUT_OF_RANGE | Input parameters are out of range. |
tResult MoveEnum | ( | const int | nFrom, |
const int | nTo | ||
) |
Method moves the specified enum-type.
[in] | nFrom | - Current element position in the list |
[in] | nTo | - New element position in the list |
ERR_OUT_OF_RANGE | Input parameters are out of range. |
tResult MoveEnumElement | ( | const int | nFrom, |
const int | nTo, | ||
const A_UTILS_NS::cString & | strParent | ||
) |
Method moves the specified enum element.
[in] | nFrom | - Current element position in the list |
[in] | nTo | - New element position in the list |
[in] | strParent | - Name of parent element |
ERR_OUT_OF_RANGE | Input parameters are out of range. |
tResult MoveHeaderExcDec | ( | const int | nFrom, |
const int | nTo | ||
) |
Method moves the specified external header declaration.
[in] | nFrom | - Current element position in the list |
[in] | nTo | - New element position in the list |
ERR_OUT_OF_RANGE | Input parameters are out of range. |
tResult MovePrefix | ( | const int | nFrom, |
const int | nTo | ||
) |
Method moves the specified prefix.
[in] | nFrom | - Current element position in the list |
[in] | nTo | - New element position in the list |
ERR_OUT_OF_RANGE | Input parameters are out of range. |
tResult MoveRefUnit | ( | const int | nFrom, |
const int | nTo, | ||
const A_UTILS_NS::cString & | strParent | ||
) |
Method moves the specified element within a unit.
[in] | nFrom | - Current element position in the list |
[in] | nTo | - New element position in the list |
[in] | strParent | - Unit name |
ERR_OUT_OF_RANGE | Input parameters are out of range. |
tResult MoveStream | ( | const int | nFrom, |
const int | nTo | ||
) |
Method moves the specified stream.
[in] | nFrom | - Current element position in the list |
[in] | nTo | - New element position in the list |
ERR_OUT_OF_RANGE | Input parameters are out of range. |
tResult MoveUnit | ( | const int | nFrom, |
const int | nTo | ||
) |
Method moves the specified unit.
[in] | nFrom | - Current element position in the list |
[in] | nTo | - New element position in the list |
ERR_OUT_OF_RANGE | Input parameters are out of range. |
void RefBaseunits | ( | tDDLBaseunitVec & | vecDDLBaseunits | ) |
Setter for the baseunits.
[in] | vecDDLBaseunits | - Vector of baseunit objects |
void RefDatatypes | ( | tDDLDTVec & | vecDDLDataTypes | ) |
Setter for the data types.
[in] | vecDDLDataTypes | - Vector of datatypes |
void RefEnums | ( | tDDLEnumVec & | vecDDLEnum | ) |
Setter for the constants.
[in] | vecDDLEnum | - Vector of enums |
void RefPrefixes | ( | tDDLPrefixVec & | vecDDLPrefixes | ) |
Setter for the prefixes.
[in] | vecDDLPrefixes | - Vector of prefix objects |
void RefStreamMetaTypes | ( | tDDLStreamMetaTypeVec & | vecStreams | ) |
Setter for the streams.
[in] | vecStreams | - Vector of streams |
void RefStreams | ( | tDDLStreamVec & | vecStreams | ) |
Setter for the streams.
[in] | vecStreams | - Vector of streams |
void RefStructs | ( | tDDLComplexVec & | vecStructs | ) |
Setter for the complex datatypes.
[in] | vecStructs | - Vector of complex datatypes |
void RefUnits | ( | tDDLUnitVec & | vecDDLUnits | ) |
Setter for the units.
[in] | vecDDLUnits | - Vector of unit objects |
tResult RemoveBaseunit | ( | const A_UTILS_NS::cString & | strName | ) |
Removes the specified BaseUnit type.
[in] | strName | - Name of the baseunit to remove |
ERR_NOT_FOUND | The specified base was not found |
tResult RemoveComplexDataType | ( | const A_UTILS_NS::cString & | strName | ) |
Removes the specified complex data-type.
[in] | strName | - Name of the type to remove |
ERR_NOT_FOUND | The specified data type was not found |
tResult RemoveDataType | ( | const A_UTILS_NS::cString & | strName | ) |
Removes the specified primitive data-type.
[in] | strName | - Name of the type to remove |
ERR_NOT_FOUND | The specified data type was not found |
tResult RemoveEnum | ( | const A_UTILS_NS::cString & | strName | ) |
Removes the specified enum.
[in] | strName | - Name of the enum to remove |
ERR_NOT_FOUND | The specified enum was not found |
tResult RemovePrefix | ( | const A_UTILS_NS::cString & | strName | ) |
Removes the specified Unit type.
[in] | strName | - Name of the prefix to remove |
ERR_NOT_FOUND | The specified base was not found |
tResult RemoveStream | ( | const A_UTILS_NS::cString & | strName | ) |
Removes the specified stream from the description.
[in] | strName | - Name of the stream to remove |
ERR_NOT_FOUND | The specified stream was not found |
tResult RemoveStreamMetaType | ( | const A_UTILS_NS::cString & | strName | ) |
Removes the specified stream from the description.
[in] | strName | - Name of the stream to remove |
ERR_NOT_FOUND | The specified stream was not found |
tResult RemoveType | ( | const A_UTILS_NS::cString & | strName | ) |
Removes the specified primitive or complex data-type.
[in] | strName | - Name of the type to remove |
ERR_NOT_FOUND | The specified data type was not found |
tResult RemoveUnit | ( | const A_UTILS_NS::cString & | strName | ) |
Removes the specified Unit type.
[in] | strName | - Name of the unit to remove |
ERR_NOT_FOUND | The specified base was not found |
tResult RenameStream | ( | const A_UTILS_NS::cString & | strOldName, |
const A_UTILS_NS::cString & | strNewName | ||
) |
Renames the specified stream.
[in] | strOldName | - Current name of the stream to rename |
[in] | strNewName | - New name of the stream |
ERR_NOT_FOUND | The specified stream was not found |
tResult RenameStreamMetaType | ( | const A_UTILS_NS::cString & | strOldName, |
const A_UTILS_NS::cString & | strNewName | ||
) |
Renames the specified stream.
[in] | strOldName | - Current name of the stream to rename |
[in] | strNewName | - New name of the stream |
ERR_NOT_FOUND | The specified stream was not found |
tResult RestoreLevel | ( | int const | nLevel | ) |
Deprecated, see IMediaDescriptionStack for the mechanism provided by the Media Description Service that superseeds this functionality.
Method to remove all representation objects of the specified level and above.
[in] | nLevel | - Creation level from which all representation objects should be removed |
ERR_INVALID_HANDLE | Validation of remaining DDL failed |