ledger-core
Public Member Functions | List of all members
ledger::core::api::PathResolver Class Referenceabstract

#include <PathResolver.hpp>

Public Member Functions

virtual std::string resolveDatabasePath (const std::string &path)=0
 
virtual std::string resolveLogFilePath (const std::string &path)=0
 
virtual std::string resolvePreferencesPath (const std::string &path)=0
 

Detailed Description

Module used to resolve file paths. libledger-core has its own iternal representation of the file system that may not be adapted for the runtime platform. All path given to the PathResolver are absolute.

Member Function Documentation

◆ resolveDatabasePath()

virtual std::string ledger::core::api::PathResolver::resolveDatabasePath ( const std::string &  path)
pure virtual

Resolves the path for a SQLite database file.

Parameters
pathThe path to resolve.
Returns
The resolved path.

◆ resolveLogFilePath()

virtual std::string ledger::core::api::PathResolver::resolveLogFilePath ( const std::string &  path)
pure virtual

Resolves the path of a single log file.

Parameters
pathThe path to resolve.
Returns
The resolved path.

◆ resolvePreferencesPath()

virtual std::string ledger::core::api::PathResolver::resolvePreferencesPath ( const std::string &  path)
pure virtual

Resolves the path for a json file.

Parameters
pathThe path to resolve.
Returns
The resolved path.

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