ObjectLoader loads objects from KZB.
More...
#include <kanzi/core.ui/kzb/object_loader.hpp>
|
| | ObjectLoader () |
| | Constructor. More...
|
| |
| void | registerObjectLoadFunctions (const Metaclass *metaclass, const LoadFunctionOld &loadFunctionOld, const LoadFunction &loadFunction) |
| | Registers object load functions by metaclass. More...
|
| |
| ObjectSharedPtr | loadObject (Domain *domain, const Metaclass *metaclass, string_view name, KzcInputStream *inputStream, const KzuBinaryFileInfo *file) |
| | Loads object by metaclass from old-style KZB. More...
|
| |
| ObjectSharedPtr | loadObject (Domain *domain, const Metaclass *metaclass, string_view name, KzbFile &kzbFile, KzbMemoryParser &parser) |
| | Loads object by metaclass from KZB. More...
|
| |
| bool | isLoadingEnabled (const Metaclass *metaclass) const |
| | Indicates whether loading for objects with specified metaclass is possible via this object loader. More...
|
| |
ObjectLoader loads objects from KZB.
| kanzi::ObjectLoader::ObjectLoader |
( |
| ) |
|
|
explicit |
Registers object load functions by metaclass.
Functions might return objects whose type is different from the type specified by metaclass.
- Parameters
-
| metaclass | Metaclass of object to load. |
| loadFunctionOld | Function to load object from old-format KZB. |
| loadFunction | Function to load object from KZB. |
Loads object by metaclass from old-style KZB.
Returned object might have different type than type specified by metaclass.
- Parameters
-
| domain | Domain to use when loading object. |
| metaclass | Metaclass of object to load. |
| name | Name of object to load. |
| inputStream | Stream to load object from. |
| file | File to load object from. |
- Returns
- Loaded object.
Loads object by metaclass from KZB.
Returned object might have different type than type specified by metaclass.
- Parameters
-
| domain | Domain to use when loading object. |
| metaclass | Metaclass of object to load. |
| name | Name of object to load. |
| kzbFile | KZB to load object from. |
| parser | Parser to parse object data from. |
- Returns
- Loaded object.
| bool kanzi::ObjectLoader::isLoadingEnabled |
( |
const Metaclass * |
metaclass | ) |
const |
Indicates whether loading for objects with specified metaclass is possible via this object loader.
- Parameters
-
- Returns
- true if loading is possible, false otherwise.
The documentation for this class was generated from the following file: