Abstract base class/interface for Factory Method design-pattern.
More...
Abstract base class/interface for Factory Method design-pattern.
Definition at line 17 of file ddlfactorymethod_intf.h.
◆ BuildDatatypes()
Method to build a datatypes object hierarchy.
- Return values
-
ERR_UNKNOWN_FORMAT | Expected XML hierarchy not found |
ERR_NO_CLASS | Cross reference not resolvable (e.g. unit) |
Implemented in cDDLImporter, and cDDLCloner.
◆ BuildEnums()
Method to build a enums object hierarchy.
- Return values
-
ERR_UNKNOWN_FORMAT | Expected XML hierarchy not found |
ERR_NO_CLASS | Cross reference not resolvable (e.g. RefEnums) |
ERR_UNKNOWN | Not all firstly unknown structs have been resolved |
Implemented in cDDLImporter, and cDDLCloner.
◆ BuildHeader()
Method to build a header object.
- Return values
-
ERR_UNKNOWN_FORMAT | Expected XML hierarchy not found |
Implemented in cDDLImporter, and cDDLCloner.
◆ BuildStreamMetaTypes()
virtual tResult BuildStreamMetaTypes |
( |
| ) |
|
|
pure virtual |
Method to build a streams object hierarchy.
- Return values
-
ERR_UNKNOWN_FORMAT | Expected XML hierarchy not found |
ERR_NO_CLASS | Cross reference not resolvable (e.g. struct) |
Implemented in cDDLImporter, and cDDLCloner.
◆ BuildStreams()
Method to build a streams object hierarchy.
- Return values
-
ERR_UNKNOWN_FORMAT | Expected XML hierarchy not found |
ERR_NO_CLASS | Cross reference not resolvable (e.g. struct) |
Implemented in cDDLImporter, and cDDLCloner.
◆ BuildStructs()
Method to build a structs object hierarchy.
- Return values
-
ERR_UNKNOWN_FORMAT | Expected XML hierarchy not found |
ERR_NO_CLASS | Cross reference not resolvable (e.g. datatype) |
ERR_UNKNOWN | Not all firstly unknown structs have been resolved |
Implemented in cDDLImporter, and cDDLCloner.
◆ BuildUnits()
Method to build a units object hierarchy.
- Return values
-
ERR_UNKNOWN_FORMAT | Expected XML hierarchy not found |
ERR_NO_CLASS | Cross reference not resolvable (e.g. refUnit) |
ERR_UNKNOWN | Not all firstly unknown units have been resolved |
Implemented in cDDLImporter, and cDDLCloner.
◆ CreateNew()
virtual tResult CreateNew |
( |
double |
fVersion = 0 | ) |
|
|
pure virtual |
Method to build up a new DDL hierarchy.
- Parameters
-
[in] | fVersion | The version of the DDL hierarchy to be created. 0 Means newest version. |
- Return values
-
ERR_NOT_INITIALIZED | Not yet initialized (see setter methods in concrete classes, e.g. cDDLImporter::SetFile() ) |
ERR_UNKNOWN_FORMAT | Expected XML hierarchy not found |
ERR_NO_CLASS | Cross reference not resolvable (e.g. refUnit) |
ERR_UNKNOWN | Cross reference has not been resolved |
ERR_NOT_FOUND | At least one mandatory element (e.g. header) was not found. |
Implemented in cDDLImporter, and cDDLCloner.
◆ GetDDL()
Getter for the DDL object.
- Returns
- the DDL object
- Attention
- The caller/user has the responsibility for the created DDL object! Especially take this aspect into consideration in matters of the deallocation of memory!
Implemented in cDDLImporter, and cDDLCloner.