Blue Brain BioExplorer
core::ArchiveLoader Class Reference

#include <ArchiveLoader.h>

Inheritance diagram for core::ArchiveLoader:
Collaboration diagram for core::ArchiveLoader:

Public Member Functions

 ArchiveLoader (Scene &scene, LoaderRegistry &registry)
 
std::vector< std::string > getSupportedStorage () const final
 
std::string getName () const final
 
bool isSupported (const std::string &storage, const std::string &extension) const final
 
ModelDescriptorPtr importFromBlob (Blob &&blob, const LoaderProgress &callback, const PropertyMap &properties) const final
 
ModelDescriptorPtr importFromStorage (const std::string &storage, const LoaderProgress &callback, const PropertyMap &properties) const final
 
- Public Member Functions inherited from core::Loader
 Loader (Scene &scene)
 
virtual ~Loader ()=default
 
virtual PropertyMap getProperties () const
 

Additional Inherited Members

- Protected Attributes inherited from core::Loader
Scene_scene
 

Detailed Description

Definition at line 31 of file ArchiveLoader.h.

Constructor & Destructor Documentation

◆ ArchiveLoader()

core::ArchiveLoader::ArchiveLoader ( Scene scene,
LoaderRegistry registry 
)

Definition at line 189 of file ArchiveLoader.cpp.

Member Function Documentation

◆ getName()

std::string core::ArchiveLoader::getName ( ) const
finalvirtual
Returns
The loader name

Implements core::Loader.

Definition at line 240 of file ArchiveLoader.cpp.

◆ getSupportedStorage()

std::vector< std::string > core::ArchiveLoader::getSupportedStorage ( ) const
finalvirtual
Returns
The loaders supported file extensions

Implements core::Loader.

Definition at line 245 of file ArchiveLoader.cpp.

◆ importFromBlob()

ModelDescriptorPtr core::ArchiveLoader::importFromBlob ( Blob &&  blob,
const LoaderProgress callback,
const PropertyMap properties 
) const
finalvirtual

Import the data from the blob and return the created model.

Parameters
blobthe blob containing the data to import
callbackCallback for loader progress
propertiesProperties used for loading
Returns
the model that has been created by the loader

Implements core::Loader.

Definition at line 224 of file ArchiveLoader.cpp.

◆ importFromStorage()

ModelDescriptorPtr core::ArchiveLoader::importFromStorage ( const std::string &  storage,
const LoaderProgress callback,
const PropertyMap properties 
) const
finalvirtual

Import the data from the given file or database schema and return the created model.

Parameters
storagethe file or database schema containing the data to import
callbackCallback for loader progress
propertiesProperties used for loading
Returns
the model that has been created by the loader

Implements core::Loader.

Definition at line 232 of file ArchiveLoader.cpp.

◆ isSupported()

bool core::ArchiveLoader::isSupported ( const std::string &  filename,
const std::string &  extension 
) const
finalvirtual

Query the loader if it can load the given file

Implements core::Loader.

Definition at line 195 of file ArchiveLoader.cpp.


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