Main class representing a whole DDL description. More...
#include <ddldescription.h>
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. | |
virtual | ~cDDLDescription () |
DTOR. | |
tResult | Accept (IDDLVisitor *poVisitor) |
Acceptance method for Visitor design-pattern. | |
bool | IsInitialized () const |
Getter for the initialization flag. | |
const A_UTILS_NS::cString & | GetName () const |
Getter for the name of the representation object. | |
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. | |
cDDLHeader * | GetHeader () const |
Getter for the DDL header. | |
void | CloneUnits (const tDDLUnitVec &vecDDLUnits) |
Setter for the units. | |
void | RefUnits (tDDLUnitVec &vecDDLUnits) |
Setter for the units. | |
void | MergeUnits (tDDLUnitVec vecDDLUnits, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL) |
Merger for the units. | |
void | AddUnit (cDDLUnit *poUnit, int nPos=-1) |
Adder for an unit object. | |
tDDLUnitVec & | GetUnits () |
Getter for the units. | |
const tDDLUnitVec & | GetUnits () const |
Getter for the units. | |
const cDDLUnit * | GetUnitByName (const A_UTILS_NS::cString &strName) const |
Getter for a specific unit object. | |
cDDLUnit * | GetUnitByName (const A_UTILS_NS::cString &strName) |
Getter for a specific unit object. | |
void | CloneBaseunits (const tDDLBaseunitVec &vecDDLBaseunits) |
Setter for the baseunits. | |
void | RefBaseunits (tDDLBaseunitVec &vecDDLBaseunits) |
Setter for the baseunits. | |
void | MergeBaseunits (tDDLBaseunitVec vecDDLBaseunits, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL) |
Merger for the baseunits. | |
void | AddBaseunit (cDDLBaseunit *poBaseunit, int nPos=-1) |
Adder for a baseunit object. | |
tDDLBaseunitVec | GetBaseunits () const |
Getter for the baseunits. | |
const cDDLBaseunit * | GetBaseunitByName (const A_UTILS_NS::cString &strName) const |
Getter for a specific baseunit object. | |
cDDLBaseunit * | GetBaseunitByName (const A_UTILS_NS::cString &strName) |
Getter for a specific baseunit object. | |
void | ClonePrefixes (const tDDLPrefixVec &vecDDLPrefixes) |
Setter for the prefixes. | |
void | RefPrefixes (tDDLPrefixVec &vecDDLPrefixes) |
Setter for the prefixes. | |
void | MergePrefixes (tDDLPrefixVec vecDDLPrefixes, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL) |
Merger for the prefixes. | |
void | AddPrefix (cDDLPrefix *poPrefix, int nPos=-1) |
Adder for a prefix object. | |
tDDLPrefixVec | GetPrefixes () const |
Getter for the prefixes. | |
cDDLPrefix * | GetPrefixByName (const A_UTILS_NS::cString &strName) |
Getter for a specific prefix object. | |
const cDDLPrefix * | GetPrefixByName (const A_UTILS_NS::cString &strName) const |
Getter for a specific prefix object. | |
void | CloneDatatypes (const tDDLDTVec &vecDDLDataTypes) |
Setter for the data types. | |
void | RefDatatypes (tDDLDTVec &vecDDLDataTypes) |
Setter for the data types. | |
void | RefEnums (tDDLEnumVec &vecDDLEnum) |
Setter for the constants. | |
void | MergeEnums (tDDLEnumVec vecDDLEnum, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL) |
Merger for the constants. | |
void | CloneEnums (const tDDLEnumVec &vecDDLEnums) |
Setter for the enums. | |
void | AddEnum (cDDLEnum *poEnum, int nPos=-1) |
Adder for a enum object. | |
cDDLEnum * | GetEnumByName (const A_UTILS_NS::cString &strName) |
Getter for a specific enum object. | |
const cDDLEnum * | GetEnumByName (const A_UTILS_NS::cString &strName) const |
Getter for a specific enum object. | |
void | MergeDatatypes (tDDLDTVec vecDDLDataTypes, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL) |
Merger for the data types. | |
void | AddDatatype (cDDLDataType *poDatatype, int nPos=-1) |
Adder for a datatype object. | |
tDDLDTVec & | GetDatatypes () |
Getter for the datatypes. | |
const tDDLDTVec & | GetDatatypes () const |
Getter for the datatypes. | |
tDDLEnumVec & | GetEnums () |
Getter for the enums. | |
const tDDLEnumVec & | GetEnums () const |
Getter for the enums. | |
cDDLDataType * | GetDataTypeByName (const A_UTILS_NS::cString &strName) |
Getter for a specific data-type object. | |
const cDDLDataType * | GetDataTypeByName (const A_UTILS_NS::cString &strName) const |
Getter for a specific data-type object. | |
void | CloneStructs (const tDDLComplexVec &vecStructs) |
Setter for the complex datatypes. | |
void | RefStructs (tDDLComplexVec &vecStructs) |
Setter for the complex datatypes. | |
void | MergeStructs (tDDLComplexVec vecStructs, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL) |
Merger for the complex datatypes. | |
void | AddStruct (cDDLComplex *poStruct, int nPos=-1) |
Adder for a complex datatype object. | |
tDDLComplexVec & | GetStructs () |
Getter for the complex datatypes. | |
const tDDLComplexVec & | GetStructs () const |
Getter for the complex datatypes. | |
const cDDLComplex * | GetStructByName (const A_UTILS_NS::cString &strName) const |
Getter for a specific struct object. | |
cDDLComplex * | GetStructByName (const A_UTILS_NS::cString &strName) |
Getter for a specific struct object. | |
tResult | RemoveType (const A_UTILS_NS::cString &strName) |
Removes the specified primitive or complex data-type. | |
tResult | RemoveDataType (const A_UTILS_NS::cString &strName) |
Removes the specified primitive data-type. | |
tResult | RemoveComplexDataType (const A_UTILS_NS::cString &strName) |
Removes the specified complex data-type. | |
tResult | MoveHeaderExcDec (const int nFrom, const int nTo) |
Method moves the specified external header declaration. | |
tResult | MoveBaseunit (const int nFrom, const int nTo) |
Method moves the specified base unit. | |
tResult | MovePrefix (const int nFrom, const int nTo) |
Method moves the specified prefix. | |
tResult | MoveUnit (const int nFrom, const int nTo) |
Method moves the specified unit. | |
tResult | MoveRefUnit (const int nFrom, const int nTo, const A_UTILS_NS::cString &strParent) |
Method moves the specified element within a unit. | |
tResult | MoveEnum (const int nFrom, const int nTo) |
Method moves the specified enum-type. | |
tResult | MoveEnumElement (const int nFrom, const int nTo, const A_UTILS_NS::cString &strParent) |
Method moves the specified enum element. | |
tResult | MoveDatatype (const int nFrom, const int nTo) |
Method moves the specified data-type. | |
tResult | MoveComplexDataType (const int nFrom, const int nTo) |
Method moves the specified complex data-type. | |
tResult | MoveComplexDataTypeElement (const int nFrom, const int nTo, const A_UTILS_NS::cString &strParent) |
Method moves the specified element within complex data-type. | |
tResult | MoveStream (const int nFrom, const int nTo) |
Method moves the specified stream. | |
tResult | RemoveBaseunit (const A_UTILS_NS::cString &strName) |
Removes the specified BaseUnit type. | |
tResult | RemovePrefix (const A_UTILS_NS::cString &strName) |
Removes the specified Unit type. | |
tResult | RemoveUnit (const A_UTILS_NS::cString &strName) |
Removes the specified Unit type. | |
tResult | RemoveEnum (const A_UTILS_NS::cString &strName) |
Removes the specified enum. | |
void | CloneStreams (const tDDLStreamVec &vecStreams) |
Setter for the streams. | |
void | RefStreams (tDDLStreamVec &vecStreams) |
Setter for the streams. | |
void | MergeStreams (tDDLStreamVec vecStreams, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL) |
Merger for the streams. | |
void | AddStream (cDDLStream *poStream, int nPos=-1) |
Adder for a stream object. | |
tDDLStreamVec & | GetStreams () |
Getter for the streams. | |
const tDDLStreamVec & | GetStreams () const |
Getter for the streams. | |
cDDLStream * | GetStreamByName (const A_UTILS_NS::cString &strName) |
Getter for a specific stream object. | |
const cDDLStream * | GetStreamByName (const A_UTILS_NS::cString &strName) const |
Getter for a specific stream object. | |
tResult | RenameStream (const A_UTILS_NS::cString &strOldName, const A_UTILS_NS::cString &strNewName) |
Renames the specified stream. | |
tResult | RemoveStream (const A_UTILS_NS::cString &strName) |
Removes the specified stream from the description. | |
void | CloneStreamMetaTypes (const tDDLStreamMetaTypeVec &vecStreams) |
Setter for the streams. | |
void | RefStreamMetaTypes (tDDLStreamMetaTypeVec &vecStreams) |
Setter for the streams. | |
void | MergeStreamMetaTypes (tDDLStreamMetaTypeVec vecStreams, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL) |
Merger for the streams. | |
void | AddStreamMetaType (cDDLStreamMetaType *poStream, int nPos=-1) |
Adder for a stream object. | |
tDDLStreamMetaTypeVec & | GetStreamMetaTypes () |
Getter for the streams. | |
const tDDLStreamMetaTypeVec & | GetStreamMetaTypes () const |
Getter for the streams. | |
cDDLStreamMetaType * | GetStreamMetaTypeByName (const A_UTILS_NS::cString &strName) |
Getter for a specific stream object. | |
const cDDLStreamMetaType * | GetStreamMetaTypeByName (const A_UTILS_NS::cString &strName) const |
Getter for a specific stream object. | |
tResult | RenameStreamMetaType (const A_UTILS_NS::cString &strOldName, const A_UTILS_NS::cString &strNewName) |
Renames the specified stream. | |
tResult | RemoveStreamMetaType (const A_UTILS_NS::cString &strName) |
Removes the specified stream from the description. | |
tResult | Merge (cDDLDescription &oDDL, uint32_t ui32JoinFlags=0) |
Merges another DDL into this one. | |
tResult | RestoreLevel (int const nLevel) |
Deprecated, see IMediaDescriptionStack for the mechanism provided by the Media Description Service that superseeds this functionality. | |
![]() | |
virtual | ~cDDL () |
DTOR. | |
virtual bool | IsPredefined () const |
Getter for the predefinition flag. | |
virtual bool | IsOverwriteable () const |
Getter for the predefinition flag. | |
virtual int | GetCreationLevel () const |
Getter for the creation level. | |
![]() | |
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. | |
static cDDLDescription * | CreateDefault (double fVersion, int const nCreationLevel, bool bSorted=true) |
Overloaded method. | |
![]() | |
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. | |
template<typename T> | |
static tResult | MoveChild (T *pvObj, const int nFrom, const int nTo) |
Method moves element within the list. | |
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. | |
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. | |
static bool | IsEqual (IDDL *poLHS, IDDL *poRHS) |
Predicate to compare 2 DDL representation objects (for use with std::unique() ). | |
static bool | IsSorted (IDDL *poLHS, IDDL *poRHS) |
Sort predicate to compare to 2 DDL representation objects (for use with std::sort() ). | |
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. | |
Additional Inherited Members | |
![]() | |
enum | tag_MergeFlags { DDLMERGE_ForceOverwrite = 0x01 } |
Flags for Merging. More... | |
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.). |
References cDDLDescription().
Referenced by cDDLDescription(), cDDLDescription(), ~cDDLDescription(), CreateDefault(), CreateDefault(), Merge(), and MergePart().
|
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.
References Accept().
Referenced by Accept().
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 |
References AddBaseunit().
Referenced by AddBaseunit().
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 |
References AddDatatype().
Referenced by AddDatatype().
void AddEnum | ( | cDDLEnum * | poEnum, |
int | nPos = -1 ) |
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 |
References AddPrefix().
Referenced by AddPrefix().
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 |
References AddStream().
Referenced by AddStream().
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 |
References AddStreamMetaType().
Referenced by AddStreamMetaType().
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 |
References AddStruct().
Referenced by AddStruct().
void AddUnit | ( | cDDLUnit * | poUnit, |
int | nPos = -1 ) |
void CloneBaseunits | ( | const tDDLBaseunitVec & | vecDDLBaseunits | ) |
Setter for the baseunits.
[in] | vecDDLBaseunits | - Vector of baseunit objects |
References CloneBaseunits().
Referenced by CloneBaseunits().
void CloneDatatypes | ( | const tDDLDTVec & | vecDDLDataTypes | ) |
Setter for the data types.
[in] | vecDDLDataTypes | - Vector of datatypes |
References CloneDatatypes().
Referenced by CloneDatatypes().
void CloneEnums | ( | const tDDLEnumVec & | vecDDLEnums | ) |
Setter for the enums.
[in] | vecDDLEnums | - Vector of enums |
References CloneEnums().
Referenced by CloneEnums().
void ClonePrefixes | ( | const tDDLPrefixVec & | vecDDLPrefixes | ) |
Setter for the prefixes.
[in] | vecDDLPrefixes | - Vector of prefix objects |
References ClonePrefixes().
Referenced by ClonePrefixes().
void CloneStreamMetaTypes | ( | const tDDLStreamMetaTypeVec & | vecStreams | ) |
Setter for the streams.
[in] | vecStreams | - Vector of streams |
References CloneStreamMetaTypes().
Referenced by CloneStreamMetaTypes().
void CloneStreams | ( | const tDDLStreamVec & | vecStreams | ) |
Setter for the streams.
[in] | vecStreams | - Vector of streams |
References CloneStreams().
Referenced by CloneStreams().
void CloneStructs | ( | const tDDLComplexVec & | vecStructs | ) |
Setter for the complex datatypes.
[in] | vecStructs | - Vector of complex datatypes |
References CloneStructs().
Referenced by CloneStructs().
void CloneUnits | ( | const tDDLUnitVec & | vecDDLUnits | ) |
Setter for the units.
[in] | vecDDLUnits | - Vector of unit objects |
References CloneUnits().
Referenced by CloneUnits().
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 |
References Create().
Referenced by Create().
|
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. |
References cDDLDescription(), and CreateDefault().
|
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) |
References cDDLDescription(), and CreateDefault().
Referenced by CreateDefault(), and CreateDefault().
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 References GetBaseunitByName().
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 References GetBaseunitByName().
Referenced by GetBaseunitByName(), and GetBaseunitByName().
tDDLBaseunitVec GetBaseunits | ( | ) | const |
Getter for the baseunits.
References GetBaseunits().
Referenced by GetBaseunits().
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 References GetDataTypeByName().
Referenced by GetDataTypeByName(), and GetDataTypeByName().
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 References GetDataTypeByName().
tDDLDTVec & GetDatatypes | ( | ) |
Getter for the datatypes.
References GetDatatypes().
Referenced by GetDatatypes(), and GetDatatypes().
const tDDLDTVec & GetDatatypes | ( | ) | const |
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 References GetEnumByName().
Referenced by GetEnumByName(), and GetEnumByName().
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 References GetEnumByName().
tDDLEnumVec & GetEnums | ( | ) |
Getter for the enums.
References GetEnums().
Referenced by GetEnums(), and GetEnums().
const tDDLEnumVec & GetEnums | ( | ) | const |
cDDLHeader * GetHeader | ( | ) | const |
|
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 References GetPrefixByName().
Referenced by GetPrefixByName(), and GetPrefixByName().
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 References GetPrefixByName().
tDDLPrefixVec GetPrefixes | ( | ) | const |
Getter for the prefixes.
References GetPrefixes().
Referenced by GetPrefixes().
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 References GetStreamByName().
Referenced by GetStreamByName(), and GetStreamByName().
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 References GetStreamByName().
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 References GetStreamMetaTypeByName().
Referenced by GetStreamMetaTypeByName(), and GetStreamMetaTypeByName().
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 References GetStreamMetaTypeByName().
tDDLStreamMetaTypeVec & GetStreamMetaTypes | ( | ) |
Getter for the streams.
References GetStreamMetaTypes().
Referenced by GetStreamMetaTypes(), and GetStreamMetaTypes().
const tDDLStreamMetaTypeVec & GetStreamMetaTypes | ( | ) | const |
tDDLStreamVec & GetStreams | ( | ) |
Getter for the streams.
References GetStreams().
Referenced by GetStreams(), and GetStreams().
const tDDLStreamVec & GetStreams | ( | ) | const |
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 References GetStructByName().
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 References GetStructByName().
Referenced by GetStructByName(), and GetStructByName().
tDDLComplexVec & GetStructs | ( | ) |
Getter for the complex datatypes.
References GetStructs().
Referenced by GetStructs(), and GetStructs().
const tDDLComplexVec & GetStructs | ( | ) | const |
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 References GetUnitByName().
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 References GetUnitByName().
Referenced by GetUnitByName(), and GetUnitByName().
tDDLUnitVec & GetUnits | ( | ) |
Getter for the units.
References GetUnits().
Referenced by GetUnits(), and GetUnits().
const tDDLUnitVec & GetUnits | ( | ) | const |
|
virtual |
Getter for the initialization flag.
true | The object was initialized correctly |
false | The object was not or not correctly initialized |
Reimplemented from cDDL.
References IsInitialized().
Referenced by IsInitialized().
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) |
References cDDLDescription(), and Merge().
Referenced by Merge().
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. |
References MergeBaseunits().
Referenced by MergeBaseunits().
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. |
References MergeDatatypes().
Referenced by MergeDatatypes().
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. |
References MergeEnums().
Referenced by MergeEnums().
|
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 |
References cDDLDescription(), and MergePart().
Referenced by MergePart().
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. |
References MergePrefixes().
Referenced by MergePrefixes().
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. |
References MergeStreamMetaTypes().
Referenced by MergeStreamMetaTypes().
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. |
References MergeStreams().
Referenced by MergeStreams().
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. |
References MergeStructs().
Referenced by MergeStructs().
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 |
References MergeUnits().
Referenced by MergeUnits().
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. |
References MoveBaseunit().
Referenced by MoveBaseunit().
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. |
References MoveComplexDataType().
Referenced by MoveComplexDataType().
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. |
References MoveComplexDataTypeElement().
Referenced by MoveComplexDataTypeElement().
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. |
References MoveDatatype().
Referenced by MoveDatatype().
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. |
References MoveEnum().
Referenced by MoveEnum().
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. |
References MoveEnumElement().
Referenced by MoveEnumElement().
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. |
References MoveHeaderExcDec().
Referenced by MoveHeaderExcDec().
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. |
References MovePrefix().
Referenced by MovePrefix().
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. |
References MoveRefUnit().
Referenced by MoveRefUnit().
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. |
References MoveStream().
Referenced by MoveStream().
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. |
References MoveUnit().
Referenced by MoveUnit().
void RefBaseunits | ( | tDDLBaseunitVec & | vecDDLBaseunits | ) |
Setter for the baseunits.
[in] | vecDDLBaseunits | - Vector of baseunit objects |
References RefBaseunits().
Referenced by RefBaseunits().
void RefDatatypes | ( | tDDLDTVec & | vecDDLDataTypes | ) |
Setter for the data types.
[in] | vecDDLDataTypes | - Vector of datatypes |
References RefDatatypes().
Referenced by RefDatatypes().
void RefEnums | ( | tDDLEnumVec & | vecDDLEnum | ) |
Setter for the constants.
[in] | vecDDLEnum | - Vector of enums |
References RefEnums().
Referenced by RefEnums().
void RefPrefixes | ( | tDDLPrefixVec & | vecDDLPrefixes | ) |
Setter for the prefixes.
[in] | vecDDLPrefixes | - Vector of prefix objects |
References RefPrefixes().
Referenced by RefPrefixes().
void RefStreamMetaTypes | ( | tDDLStreamMetaTypeVec & | vecStreams | ) |
Setter for the streams.
[in] | vecStreams | - Vector of streams |
References RefStreamMetaTypes().
Referenced by RefStreamMetaTypes().
void RefStreams | ( | tDDLStreamVec & | vecStreams | ) |
Setter for the streams.
[in] | vecStreams | - Vector of streams |
References RefStreams().
Referenced by RefStreams().
void RefStructs | ( | tDDLComplexVec & | vecStructs | ) |
Setter for the complex datatypes.
[in] | vecStructs | - Vector of complex datatypes |
References RefStructs().
Referenced by RefStructs().
void RefUnits | ( | tDDLUnitVec & | vecDDLUnits | ) |
Setter for the units.
[in] | vecDDLUnits | - Vector of unit objects |
References RefUnits().
Referenced by RefUnits().
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 |
References RemoveBaseunit().
Referenced by RemoveBaseunit().
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 |
References RemoveComplexDataType().
Referenced by RemoveComplexDataType().
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 |
References RemoveDataType().
Referenced by RemoveDataType().
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 |
References RemoveEnum().
Referenced by RemoveEnum().
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 |
References RemovePrefix().
Referenced by RemovePrefix().
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 |
References RemoveStream().
Referenced by RemoveStream().
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 |
References RemoveStreamMetaType().
Referenced by RemoveStreamMetaType().
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 |
References RemoveType().
Referenced by RemoveType().
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 |
References RemoveUnit().
Referenced by RemoveUnit().
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 |
References RenameStream().
Referenced by RenameStream().
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 |
References RenameStreamMetaType().
Referenced by RenameStreamMetaType().
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 |
References RestoreLevel().
Referenced by RestoreLevel().
|
private |
Definition at line 852 of file ddldescription.h.
|
private |
Definition at line 853 of file ddldescription.h.
|
private |
Definition at line 843 of file ddldescription.h.
|
private |
Definition at line 845 of file ddldescription.h.
|
private |
Definition at line 847 of file ddldescription.h.
|
private |
Definition at line 848 of file ddldescription.h.
|
private |
Definition at line 846 of file ddldescription.h.
|
private |
Definition at line 844 of file ddldescription.h.
|
private |
Definition at line 851 of file ddldescription.h.
|
private |
Definition at line 850 of file ddldescription.h.
|
private |
Definition at line 849 of file ddldescription.h.