|
libcrn
3.9.5
A document image processing library
|
Produces CRNData objects from XML. More...
#include <CRNDataFactory.h>
Public Member Functions | |
| DataFactory (const DataFactory &)=delete | |
| DataFactory (DataFactory &&)=delete | |
| DataFactory & | operator= (const DataFactory &)=delete |
| DataFactory & | operator= (DataFactory &&)=delete |
| ~DataFactory () | |
| Destructor. More... | |
Static Public Member Functions | |
| static UObject | CreateData (xml::Element &el) |
| Creates and initializes a SObject from an XML element. More... | |
| static bool | RegisterClass (const String &name, std::unique_ptr< DataFactoryElementBase > &&cstr) |
| Registers a class in the factory. More... | |
| static String | GetKnownTypes () |
| Returns the list of registered classes. More... | |
Produces CRNData objects from XML.
A factory to produce CRNData objects from an XML element
Definition at line 68 of file CRNDataFactory.h.
|
delete |
|
delete |
| DataFactory::~DataFactory | ( | ) |
|
static |
Creates and initializes a SObject from an XML element.
Creates and initializes a CRNData from an XML element
| ExceptionInvalidArgument | null XML element |
| ExceptionRuntime | impossible to read the XML element |
| ExceptionNotFound | unknown type |
| [in] | el | the XML element to use for initialization |
Definition at line 46 of file CRNDataFactory.cpp.
|
static |
Returns the list of registered classes.
Returns the list of registered classes
Definition at line 84 of file CRNDataFactory.cpp.
|
delete |
|
delete |
|
static |
Registers a class in the factory.
Registers a class in the factory
| [in] | name | the class name |
| [in] | cstr | the constructor for this class |
Definition at line 68 of file CRNDataFactory.cpp.
1.8.6