ADTF
|
Concrete Visitor to collect the data of a DDL in object-representation and convert it back to XML (string or file). More...
Public Member Functions | |
cDDLPrinter (const bool &bFullOut=true) | |
Constructor. | |
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 | GetXML () const |
Getter for the XML string of the collected DDL information. More... | |
tResult | ToFile (const A_UTILS_NS::cString &strFilename) const |
Saves the collected DDL information as XML to the specified file. More... | |
tResult | ForceVersion (double fForcedVersion) |
The method ForceVersion makes the printer ignore the DDL language version set in the header of the description to be printed. More... | |
![]() | |
virtual | ~IDDLVisitor () |
DTOR. | |
Private Attributes | |
A_UTILS_NS::cDOM | m_oDOM |
double | m_fVersion |
bool | m_bFullOut |
A_UTILS_NS::cString | m_strLastPath |
double | m_fForcedVersion |
Concrete Visitor to collect the data of a DDL in object-representation and convert it back to XML (string or file).
Definition at line 19 of file ddlprinter.h.
tResult ForceVersion | ( | double | fForcedVersion | ) |
The method ForceVersion makes the printer ignore the DDL language version set in the header of the description to be printed.
To take effect, this method must be called before calling VisitDDL()
[in] | fForcedVersion | The version the printer use for output. Use the flags defined in IMediaDescription::tMediaDescriptionFlags. |
ERR_NOERROR | Everything went fine |
ERR_INVALID_VERSION | Unknown version passed. |
A_UTILS_NS::cString GetXML | ( | ) | const |
Getter for the XML string of the collected DDL information.
tResult ToFile | ( | const A_UTILS_NS::cString & | strFilename | ) | const |
Saves the collected DDL information as XML to the specified file.
[in] | strFilename | - Path to file to use |
ERR_FAILED | Saving process failed |
|
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.