Public Member Functions |
Static Public Member Functions |
Protected Member Functions |
Protected Attributes |
Friends |
List of all members
faudes::TypeDefinition Class Reference A TypeDefinition defines a faudes-type in that it specifies a faudes-type name to identify the type and a method NewObject() to instantiate objects of the respective type. More...
Detailed DescriptionA TypeDefinition defines a faudes-type in that it specifies a faudes-type name to identify the type and a method NewObject() to instantiate objects of the respective type. In this sense, TypeDefinition is a so called factory class. Technically, the TypeDefinition holds one instance of the faude type, the so called prototype object, and NewObject() invokes the New() method of the prototype. Notebly, there is only one class TypeDefinition that by parametrisation defins all derivates of Type. TypeDefinition is derived from faudes::Documentation and therefore additional documentation-data can be associated. Definition at line 1396 of file cfl_types.h. Constructor & Destructor Documentation
Constructor. The default constructor instantiates an invalid type definition without prototype. To construct a valid type definition, use the static Constructor() template function. Definition at line 1414 of file cfl_types.h.
Disable copy constructor. Definition at line 1542 of file cfl_types.h. Member Function Documentation
Clear documentation-data; do NOT delete prototype (this is for using Read to merge/overwrite documentation) Reimplemented from faudes::Documentation. Definition at line 725 of file cfl_types.cpp.
template<class T >
Construct empty TypeDefinition object. The given template parameter denotes any libFAUDES class derived from faudes::Type A new instance of this class is assigned to member variable (pType) whereas the name is set as specified.
Definition at line 1650 of file cfl_types.h.
Construct empty TypeDefinition object. The given prototype is assigned to the member variable pType,
Definition at line 713 of file cfl_types.cpp.
Std faudes type interface: assignment.
Definition at line 735 of file cfl_types.cpp.
Std faudes type interface: test equality.
Definition at line 748 of file cfl_types.cpp.
Read configuration data of this object from TokenReader. The section defaults to "TypeDefinition", context ignored. Actual reading is done by DoReadCore.
Reimplemented from faudes::Documentation. Definition at line 758 of file cfl_types.cpp.
Read configuration data of this object from TokenReader. This method reads members only, it does not read the section.
Reimplemented from faudes::Documentation. Definition at line 771 of file cfl_types.cpp.
Write configuration data of this object to TokenWriter. The section defaults to "TypeDefinition", context ignored. Actual writing is done by DoWriteCore.
Reimplemented from faudes::Documentation. Definition at line 794 of file cfl_types.cpp.
Write configuration data of this object to TokenWriter. This method wrtite plain member data, the section lables are not written.
Reimplemented from faudes::Documentation. Definition at line 803 of file cfl_types.cpp.
template<class T >
Construct TypeDefinition object and read name and documentation-data from TokenReader.
Definition at line 1658 of file cfl_types.h.
Construct faudes-object on heap. Return pointer to new instance of assigned Type class. Note: If no prototype is installed, NULL is returned.
Definition at line 839 of file cfl_types.cpp.
Return pointer to faudes-object prototype. Note: this method is meant for inspection only, control over the prototype remains with the TypeDefinition. Use NewObject() to instantiate a new faudes-object.
Definition at line 818 of file cfl_types.cpp.
Use given object as prototype. The TypeDefinition takes ownership of the provided object.
Definition at line 823 of file cfl_types.cpp.
Parameter access: Xml Element Tag. This parameter is used for Xml IO of sets and vectors. It determines the tag to used for individual elments.
Definition at line 850 of file cfl_types.cpp.
Parameter access: Xml Element Tag.
Definition at line 855 of file cfl_types.cpp. Friends And Related Function Documentation
Definition at line 1402 of file cfl_types.h. Member Data Documentation
Type-pointer tp prototype instance. Definition at line 1627 of file cfl_types.h.
Extra documentation/parameter: Xml Element Tag. Definition at line 1630 of file cfl_types.h. The documentation for this class was generated from the following files: libFAUDES 2.26g --- 2015.08.17 --- c++ api documentaion by doxygen |