Kaspersky Neuromorphic Platform  1.0.0
API Reference
Loading...
Searching...
No Matches
knp::framework::BackendLoader Class Reference

The BackendLoader class is a definition of a backend loader. More...

#include <knp/framework/backend_loader.h>

+ Collaboration diagram for knp::framework::BackendLoader:

Public Member Functions

std::shared_ptr< core::Backendload (const std::filesystem::path &backend_path)
 Load backend.
 
typedef std::shared_ptr (BackendCreateFunction)()
 Function type that returns a backend instance.
 

Static Public Member Functions

static bool is_backend (const std::filesystem::path &backend_path)
 Check if the specified path points to a backend.
 

Protected Member Functions

std::function< BackendCreateFunction > make_creator (const std::filesystem::path &backend_path)
 Create a backend loader that will load and create a backend instance.
 

Detailed Description

The BackendLoader class is a definition of a backend loader.

Definition at line 42 of file backend_loader.h.

Member Function Documentation

◆ is_backend()

static bool knp::framework::BackendLoader::is_backend ( const std::filesystem::path & backend_path)
static

Check if the specified path points to a backend.

Parameters
backend_pathpath to backend.
Returns
true if the library pointed by backend_path is a backend.

◆ load()

std::shared_ptr< core::Backend > knp::framework::BackendLoader::load ( const std::filesystem::path & backend_path)

Load backend.

Parameters
backend_pathpath to backend.
Returns
shared pointer to Backend object.

◆ make_creator()

std::function< BackendCreateFunction > knp::framework::BackendLoader::make_creator ( const std::filesystem::path & backend_path)
protected

Create a backend loader that will load and create a backend instance.

Parameters
backend_pathpath to backend.
Returns
pointer to the backend creation function.

◆ std::shared_ptr()

typedef knp::framework::BackendLoader::std::shared_ptr ( BackendCreateFunction )

Function type that returns a backend instance.

Returns
shared pointer to Backend object.

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