Skip to content

api/solutions.h

Namespaces

Name
cvedia
cvedia::rt
API for controlling the server and lifecycle management of runtime instances.
cvedia::rt::iface
cvedia::rt::api
cvedia::rt::api::solutions

Functions

Name
NODISCARD expected< std::shared_ptr< iface::Solution > > addExistingSolution(std::string const & basePath)
NODISCARD expected< void > removeSolutionById(std::string const & id)
NODISCARD expected< std::shared_ptr< iface::Solution > > getSolutionById(std::string const & id)
bool solutionExists(std::string const & id)
NODISCARD expected< int > discoverSolutions(std::string const & root, bool scanInstances =true)
NODISCARD expected< void > removeAllSolutions()
NODISCARD std::string getRootPath()
NODISCARD std::vector< std::shared_ptr< iface::Solution > > getSolutions()

Functions Documentation

function addExistingSolution

NODISCARD expected< std::shared_ptr< iface::Solution > > addExistingSolution(
    std::string const & basePath
)

function removeSolutionById

NODISCARD expected< void > removeSolutionById(
    std::string const & id
)

function getSolutionById

NODISCARD expected< std::shared_ptr< iface::Solution > > getSolutionById(
    std::string const & id
)

function solutionExists

bool solutionExists(
    std::string const & id
)

function discoverSolutions

NODISCARD expected< int > discoverSolutions(
    std::string const & root,
    bool scanInstances =true
)

function removeAllSolutions

NODISCARD expected< void > removeAllSolutions()

function getRootPath

NODISCARD std::string getRootPath()

function getSolutions

NODISCARD std::vector< std::shared_ptr< iface::Solution > > getSolutions()