kanzi::KzbFile Class Reference

#include <kanzi/core.ui/kzb/kzb_loading.hpp>

Public Types

typedef ResourceSharedPtr(* LoaderCallback) (Domain *, string_view, KzbFile *, unique_ptr< ReadOnlyMemoryFile >)
 
typedef map< const Metaclass *, LoaderCallbackLoaderCallbackDictionary
 
typedef ResourceManager::LoadTaskSharedPtr(* LoadTaskFactoryFunction) (string_view, KzbFile *, unique_ptr< ReadOnlyMemoryFile >)
 
typedef map< const Metaclass *, LoadTaskFactoryFunctionLoadTaskFactoryDictionary
 
typedef vector< pair< AbstractPropertyType, Variant > > PropertyContainer
 
typedef uint32_t SizeType
 Type specifying maximum size of files. Currently at 4Gb. More...
 

Public Member Functions

 KzbFile (Domain *domain, unique_ptr< File > file)
 
unique_ptr< ReadOnlyMemoryFileopen (string_view path)
 
ResourceSharedPtr loadResource (string_view path)
 
ResourceManager::LoadTaskSharedPtr getLoadTask (string_view path)
 
DomaingetDomain () const
 
const MetaclassgetMetaclass (size_t index) const
 
AbstractPropertyType getPropertyType (size_t index) const
 
string_view getString (size_t index) const
 
string getProjectName () const
 

Friends

class KzbMemoryParser
 

Member Typedef Documentation

typedef ResourceSharedPtr(* kanzi::KzbFile::LoaderCallback) (Domain *, string_view, KzbFile *, unique_ptr< ReadOnlyMemoryFile >)
typedef ResourceManager::LoadTaskSharedPtr(* kanzi::KzbFile::LoadTaskFactoryFunction) (string_view, KzbFile *, unique_ptr< ReadOnlyMemoryFile >)
typedef uint32_t kanzi::KzbFile::SizeType

Type specifying maximum size of files. Currently at 4Gb.

Constructor & Destructor Documentation

kanzi::KzbFile::KzbFile ( Domain domain,
unique_ptr< File file 
)
explicit

Member Function Documentation

unique_ptr<ReadOnlyMemoryFile> kanzi::KzbFile::open ( string_view  path)
ResourceSharedPtr kanzi::KzbFile::loadResource ( string_view  path)
ResourceManager::LoadTaskSharedPtr kanzi::KzbFile::getLoadTask ( string_view  path)
Domain* kanzi::KzbFile::getDomain ( ) const
const Metaclass* kanzi::KzbFile::getMetaclass ( size_t  index) const
AbstractPropertyType kanzi::KzbFile::getPropertyType ( size_t  index) const
string_view kanzi::KzbFile::getString ( size_t  index) const
string kanzi::KzbFile::getProjectName ( ) const

Friends And Related Function Documentation

friend class KzbMemoryParser
friend

The documentation for this class was generated from the following file: