7 #ifndef _DDL_DESCRIPTION_H_INCLUDED_
8 #define _DDL_DESCRIPTION_H_INCLUDED_
41 bool bMergeDefaults = true);
836 uint32_t ui32JoinFlags,
840 const
bool& bDeleteNonOverwritten = false);
853 bool m_bMergeDefaults;
863 std::vector < vectorType* >* m_pSyncVec;
897 void Set(std::vector< vectorType* >* pSyncVec)
900 m_pSyncVec = pSyncVec;
910 std::transform(m_pSyncVec->begin(), m_pSyncVec->end(), m_pSyncVec->begin(), cDDLDescription::DeleteChild< vectorType > );
A common result class usable as return value throughout.
Abstract base class/interface for Visitor design-pattern.
This class template provides a auto deletion for DDL vector content like tDDLEnumVec,...
void Reset()
Reset the DDL vector pointer.
void AutoDelete()
Deletes the current set sync pointer to an DDL Vector.
cDDLAutoVec(std::vector< vectorType * > *pSyncVec)
CTOR.
void Set(std::vector< vectorType * > *pSyncVec)
Reset the DDL vector pointer and set the given one.
Representation of a base unit inside a DDL description.
Representation for a complex datatype inside a DDL specification.
Utility class that stores DDL entities.
Representation for a (simple) data type inside a DDL description.
Main class representing a whole DDL description.
cDDLHeader * GetHeader() const
Getter for the DDL header.
const cDDLComplex * GetStructByName(const A_UTILS_NS::cString &strName) const
Getter for a specific struct object.
void RefDatatypes(tDDLDTVec &vecDDLDataTypes)
Setter for the data types.
const A_UTILS_NS::cString & GetName() const
Getter for the name of the representation object.
tResult RemoveComplexDataType(const A_UTILS_NS::cString &strName)
Removes the specified complex data-type.
void MergeEnums(tDDLEnumVec vecDDLEnum, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL)
Merger for the constants.
tDDLUnitVec & GetUnits()
Getter for the units.
void ClonePrefixes(const tDDLPrefixVec &vecDDLPrefixes)
Setter for the prefixes.
void MergeDatatypes(tDDLDTVec vecDDLDataTypes, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL)
Merger for the data types.
tResult RestoreLevel(int const nLevel)
Deprecated, see IMediaDescriptionStack for the mechanism provided by the Media Description Service th...
tDDLPrefixVec GetPrefixes() const
Getter for the prefixes.
tDDLComplexVec & GetStructs()
Getter for the complex datatypes.
void RefBaseunits(tDDLBaseunitVec &vecDDLBaseunits)
Setter for the baseunits.
void RefEnums(tDDLEnumVec &vecDDLEnum)
Setter for the constants.
void CloneStructs(const tDDLComplexVec &vecStructs)
Setter for the complex datatypes.
tResult MoveBaseunit(const int nFrom, const int nTo)
Method moves the specified base unit.
void RefUnits(tDDLUnitVec &vecDDLUnits)
Setter for the units.
void CloneBaseunits(const tDDLBaseunitVec &vecDDLBaseunits)
Setter for the baseunits.
tResult RenameStreamMetaType(const A_UTILS_NS::cString &strOldName, const A_UTILS_NS::cString &strNewName)
Renames the specified stream.
void AddStruct(cDDLComplex *poStruct, int nPos=-1)
Adder for a complex datatype object.
tResult RemoveType(const A_UTILS_NS::cString &strName)
Removes the specified primitive or complex data-type.
void AddPrefix(cDDLPrefix *poPrefix, int nPos=-1)
Adder for a prefix object.
void RefStreamMetaTypes(tDDLStreamMetaTypeVec &vecStreams)
Setter for the streams.
void MergeBaseunits(tDDLBaseunitVec vecDDLBaseunits, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL)
Merger for the baseunits.
cDDLPrefix * GetPrefixByName(const A_UTILS_NS::cString &strName)
Getter for a specific prefix object.
bool IsInitialized() const
Getter for the initialization flag.
void RefPrefixes(tDDLPrefixVec &vecDDLPrefixes)
Setter for the prefixes.
void AddStreamMetaType(cDDLStreamMetaType *poStream, int nPos=-1)
Adder for a stream object.
const cDDLUnit * GetUnitByName(const A_UTILS_NS::cString &strName) const
Getter for a specific unit object.
void RefStreams(tDDLStreamVec &vecStreams)
Setter for the streams.
tResult Merge(cDDLDescription &oDDL, uint32_t ui32JoinFlags=0)
Merges another DDL into this one.
tResult MoveStream(const int nFrom, const int nTo)
Method moves the specified stream.
tDDLEnumVec & GetEnums()
Getter for the enums.
void MergeUnits(tDDLUnitVec vecDDLUnits, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL)
Merger for the units.
cDDLEnum * GetEnumByName(const A_UTILS_NS::cString &strName)
Getter for a specific enum object.
void MergeStreams(tDDLStreamVec vecStreams, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL)
Merger for the streams.
tResult RenameStream(const A_UTILS_NS::cString &strOldName, const A_UTILS_NS::cString &strNewName)
Renames the specified stream.
tResult RemoveEnum(const A_UTILS_NS::cString &strName)
Removes the specified enum.
void AddDatatype(cDDLDataType *poDatatype, int nPos=-1)
Adder for a datatype object.
tResult RemoveUnit(const A_UTILS_NS::cString &strName)
Removes the specified Unit type.
tResult MoveComplexDataType(const int nFrom, const int nTo)
Method moves the specified complex data-type.
void CloneUnits(const tDDLUnitVec &vecDDLUnits)
Setter for the units.
void CloneDatatypes(const tDDLDTVec &vecDDLDataTypes)
Setter for the data types.
void MergePrefixes(tDDLPrefixVec vecDDLPrefixes, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL)
Merger for the prefixes.
cDDLStream * GetStreamByName(const A_UTILS_NS::cString &strName)
Getter for a specific stream object.
tResult RemoveStream(const A_UTILS_NS::cString &strName)
Removes the specified stream from the description.
tResult MovePrefix(const int nFrom, const int nTo)
Method moves the specified prefix.
const cDDLBaseunit * GetBaseunitByName(const A_UTILS_NS::cString &strName) const
Getter for a specific baseunit object.
void AddEnum(cDDLEnum *poEnum, int nPos=-1)
Adder for a enum object.
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 DD...
tDDLDTVec & GetDatatypes()
Getter for the datatypes.
void RefStructs(tDDLComplexVec &vecStructs)
Setter for the complex datatypes.
void AddBaseunit(cDDLBaseunit *poBaseunit, int nPos=-1)
Adder for a baseunit object.
void MergeStreamMetaTypes(tDDLStreamMetaTypeVec vecStreams, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL)
Merger for the streams.
tResult MoveRefUnit(const int nFrom, const int nTo, const A_UTILS_NS::cString &strParent)
Method moves the specified element within a unit.
void AddUnit(cDDLUnit *poUnit, int nPos=-1)
Adder for an unit object.
tDDLBaseunitVec GetBaseunits() const
Getter for the baseunits.
static cDDLDescription * CreateDefault(int const nCreationLevel=1, bool bSorted=true)
Method to create a default DDL description.
tResult MoveHeaderExcDec(const int nFrom, const int nTo)
Method moves the specified external header declaration.
tDDLStreamMetaTypeVec & GetStreamMetaTypes()
Getter for the streams.
tResult RemoveStreamMetaType(const A_UTILS_NS::cString &strName)
Removes the specified stream from the description.
tResult Accept(IDDLVisitor *poVisitor)
Acceptance method for Visitor design-pattern.
void CloneEnums(const tDDLEnumVec &vecDDLEnums)
Setter for the enums.
void MergeStructs(tDDLComplexVec vecStructs, uint32_t ui32JoinFlags=0, tDDLVec *pvecDeleteData=NULL)
Merger for the complex datatypes.
tResult MoveEnumElement(const int nFrom, const int nTo, const A_UTILS_NS::cString &strParent)
Method moves the specified enum element.
tResult MoveComplexDataTypeElement(const int nFrom, const int nTo, const A_UTILS_NS::cString &strParent)
Method moves the specified element within complex data-type.
tResult MoveDatatype(const int nFrom, const int nTo)
Method moves the specified data-type.
tResult RemoveDataType(const A_UTILS_NS::cString &strName)
Removes the specified primitive data-type.
void CloneStreams(const tDDLStreamVec &vecStreams)
Setter for the streams.
cDDLStreamMetaType * GetStreamMetaTypeByName(const A_UTILS_NS::cString &strName)
Getter for a specific stream object.
tResult MoveUnit(const int nFrom, const int nTo)
Method moves the specified unit.
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.
cDDLDataType * GetDataTypeByName(const A_UTILS_NS::cString &strName)
Getter for a specific data-type object.
void AddStream(cDDLStream *poStream, int nPos=-1)
Adder for a stream object.
tResult RemoveBaseunit(const A_UTILS_NS::cString &strName)
Removes the specified BaseUnit type.
void CloneStreamMetaTypes(const tDDLStreamMetaTypeVec &vecStreams)
Setter for the streams.
tResult RemovePrefix(const A_UTILS_NS::cString &strName)
Removes the specified Unit type.
tResult MoveEnum(const int nFrom, const int nTo)
Method moves the specified enum-type.
tDDLStreamVec & GetStreams()
Getter for the streams.
Representation for an enum inside a DDL description.
The abstract helper class for representation classes for DDL descriptions.
Representation of a prefix in a DDL description.
Representation of a stream inside a DDL description.
Representation object of a unit.
ADTF A_UTIL Namespace - Within adtf this is used as adtf::util or adtf_util.
string_base< cStackString > cString
cString implementation for a stack string which works on stack if string is lower than A_UTILS_DEFAUL...
tResult transform(const Decoder &oDecoder, Encoder &oEncoder)
Copies all elements from a decoder to a codec.
Namespace for the mainpage_pkg_ddl.
Copyright © Audi Electronics Venture GmbH.
#define PKG_ADTF_DDL_DEPRECATED(_depr_message_)
Mark a function or variable as deprecated.