ADTF
|
Implementation of IDDLVisitor for resolving of a specified unit, datatype, struct, or stream out of an existing DDL hierarchy. More...
Public Member Functions | |
cDDLResolver () | |
Default CTOR. | |
cDDLResolver (const A_UTILS_NS::cString &strTarget) | |
CTOR with target name. More... | |
tResult | VisitDDL (cDDLDescription *poDescription) |
Visitor for a whole DDL description. More... | |
tResult | Visit (cDDLHeader *poHeader) |
Visitor for DDL header objects. More... | |
tResult | Visit (cDDLDataType *poDataType) |
Visitor for DDL datatype objects. More... | |
tResult | Visit (cDDLComplex *poComplex) |
Visitor for DDL struct objects. More... | |
tResult | Visit (cDDLStream *poStream) |
Visitor for DDL stream objects. More... | |
tResult | Visit (cDDLUnit *poUnit) |
Visitor for DDL unit objects. More... | |
tResult | Visit (cDDLBaseunit *poBaseunit) |
Visitor for DDL baseunit objects. More... | |
tResult | Visit (cDDLExtDeclaration *poExtDeclaration) |
Visitor for external DDL declaration objects. More... | |
tResult | Visit (cDDLElement *poElement) |
Visitor for DDL element objects. More... | |
tResult | Visit (cDDLPrefix *poPrefix) |
Visitor for DDL prefix objects. More... | |
tResult | Visit (cDDLRefUnit *poRefUnit) |
Visitor for DDL reference unit objects. More... | |
tResult | Visit (cDDLStreamStruct *poStreamStruct) |
Visitor for DDL streamstruct objects. More... | |
tResult | Visit (cDDLEnum *poEnum) |
Visitor for DDL enum objects. More... | |
tResult | Visit (cDDLStreamMetaType *poStreamMetaType) |
Visitor for DDL stream meta type objects. More... | |
tResult | Visit (cDDLProperty *poProperty) |
Visitor for DDL property objects. More... | |
A_UTILS_NS::cString | GetResolvedXML () const |
Getter for a minimalistic DDL which only resolves the specified DDL object. More... | |
void | SetTargetName (const A_UTILS_NS::cString &strName) |
Setter for the name of the target to resolve. More... | |
![]() | |
virtual | ~IDDLVisitor () |
DTOR. | |
Protected Member Functions | |
tResult | CreateBase (cDDLDescription *poDescription) |
Create the base items. More... | |
Protected Attributes | |
A_UTILS_NS::cDOM | m_oDOM |
Internal DOM for XML handling. | |
A_UTILS_NS::cString | m_strTarget |
Name of the resolving target. | |
double | m_fVersion |
DDL version (needed for some conversions for compatibility with DDL1.0) | |
std::stack< A_UTILS_NS::cDOMElement * > | m_stackParents |
stack of parents | |
std::set< A_UTILS_NS::cString > | m_setResolvedTypes |
set of the resolved types | |
A_UTILS_NS::cDOMElement * | m_pUnits |
DOM-Element of type Unit. | |
A_UTILS_NS::cDOMElement * | m_pDataTypes |
DOM-Element of type DataType. | |
A_UTILS_NS::cDOMElement * | m_pEnums |
DOM-Element of type Enum. | |
A_UTILS_NS::cDOMElement * | m_pStructs |
DOM-Element of type Struct. | |
A_UTILS_NS::cDOMElement * | m_pStreams |
DOM-Element of type Stream. | |
Implementation of IDDLVisitor for resolving of a specified unit, datatype, struct, or stream out of an existing DDL hierarchy.
So a minimal DDL description for the specified target is built.
Definition at line 19 of file ddlresolver.h.
cDDLResolver | ( | const A_UTILS_NS::cString & | strTarget | ) |
CTOR with target name.
[in] | strTarget | - Name of the target to resolve |
|
protected |
Create the base items.
[in] | poDescription | pointer to the DDL Description |
A_UTILS_NS::cString GetResolvedXML | ( | ) | const |
Getter for a minimalistic DDL which only resolves the specified DDL object.
void SetTargetName | ( | const A_UTILS_NS::cString & | strName | ) |
Setter for the name of the target to resolve.
[in] | strName | - Name of the DDL object to resolve |
|
virtual |
Visitor for DDL baseunit objects.
[in] | poBaseunit | - Pointer to the baseunit object |
ERR_POINTER | Null-pointer committed |
ERR_NOT_FOUND | Required node not found. |
Implements IDDLVisitor.
|
virtual |
Visitor for DDL struct objects.
[in] | poStruct | - Pointer to the struct object |
ERR_POINTER | Null-pointer committed |
ERR_NOT_FOUND | Required node not found. |
Implements IDDLVisitor.
|
virtual |
Visitor for DDL datatype objects.
[in] | poDataType | - Pointer to the datatype object |
ERR_POINTER | Null-pointer committed |
ERR_NOT_FOUND | Required node not found. |
ERR_NOT_SUPPORTED | Data type detected which is not supported. |
Implements IDDLVisitor.
|
virtual |
Visitor for DDL element objects.
[in] | poElement | - Pointer to the element object |
ERR_POINTER | Null-pointer committed |
ERR_NOT_FOUND | Required node not found. |
Implements IDDLVisitor.
Visitor for DDL enum objects.
[in] | poEnum | - Pointer to the enum object |
ERR_POINTER | Null-pointer committed |
ERR_NOT_FOUND | Required node not found. |
Implements IDDLVisitor.
|
virtual |
Visitor for external DDL declaration objects.
[in] | poExtDeclaration | - Pointer to the extdeclaration object |
ERR_POINTER | Null-pointer committed |
ERR_NOT_FOUND | Required node not found. |
Implements IDDLVisitor.
|
virtual |
Visitor for DDL header objects.
[in] | poHeader | - Pointer to the header object |
ERR_POINTER | Null-pointer committed |
ERR_NOT_FOUND | Required node not found. |
Implements IDDLVisitor.
|
virtual |
Visitor for DDL prefix objects.
[in] | poPrefix | - Pointer to the prefix object |
ERR_POINTER | Null-pointer committed |
ERR_NOT_FOUND | Required node not found. |
Implements IDDLVisitor.
|
virtual |
Visitor for DDL property objects.
[in] | poProperty | - Pointer to the object |
ERR_POINTER | Null-pointer committed |
ERR_NOT_FOUND | Required node not found. |
Implements IDDLVisitor.
|
virtual |
Visitor for DDL reference unit objects.
[in] | poRefUnit | - Pointer to the refunit object |
ERR_POINTER | Null-pointer committed |
ERR_NOT_FOUND | Required node not found. |
Implements IDDLVisitor.
|
virtual |
Visitor for DDL stream objects.
[in] | poStream | - Pointer to the stream object |
ERR_POINTER | Null-pointer committed |
ERR_NOT_FOUND | Required node not found. |
Implements IDDLVisitor.
|
virtual |
Visitor for DDL stream meta type objects.
[in] | poStreamMetaType | - Pointer to the object |
ERR_POINTER | Null-pointer committed |
ERR_NOT_FOUND | Required node not found. |
Implements IDDLVisitor.
|
virtual |
Visitor for DDL streamstruct objects.
[in] | poStreamStruct | - Pointer to the streamstruct object |
ERR_POINTER | Null-pointer committed |
ERR_NOT_FOUND | Required node not found. |
Implements IDDLVisitor.
Visitor for DDL unit objects.
[in] | poUnit | - Pointer to the unit object |
ERR_POINTER | Null-pointer committed |
ERR_NOT_FOUND | Required node not found. |
Implements IDDLVisitor.
|
virtual |
Visitor for a whole DDL description.
[in] | poDescription | - Pointer to the description object |
ERR_POINTER | Null-pointer committed |
ERR_NOT_FOUND | Required node not found. |
ERR_NOT_INITIALIZED | Not yet initialized |
Implements IDDLVisitor.