ObjectLoader loads objects from KZB.
More...
#include <kanzi/core.ui/kzb/object_loader.hpp>
ObjectLoader loads objects from KZB.
◆ LoadFunction
◆ ObjectLoader()
kanzi::ObjectLoader::ObjectLoader |
( |
| ) |
|
|
explicit |
◆ registerObjectLoadFunction()
void kanzi::ObjectLoader::registerObjectLoadFunction |
( |
const Metaclass * |
metaclass, |
|
|
LoadFunction |
loadFunction |
|
) |
| |
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. |
loadFunction | Function to load object from KZB. |
◆ loadObject()
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.
◆ isLoadingEnabled()
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: