PDFxTMDLib  1.0.0
Classes | Public Types | Public Member Functions | List of all members
PDFxTMD::ConfigWrapper Class Reference

#include <ConfigWrapper.h>

Public Types

enum class  Format { YAML }
 

Public Member Functions

 ConfigWrapper ()
 
bool loadFromFile (const std::filesystem::path &filepath, Format format)
 
bool loadFromString (const std::string &data_string, Format format)
 
template<typename T >
std::pair< std::optional< T >, ErrorTypeget (const std::string &key) const
 
template<typename T >
bool set (const std::string &key, const T &value)
 
bool saveToFile (const std::string &filename) const
 
void initializeEmptyYAML ()
 

Member Enumeration Documentation

◆ Format

Enumerator
YAML 

Constructor & Destructor Documentation

◆ ConfigWrapper()

PDFxTMD::ConfigWrapper::ConfigWrapper ( )
inline

Member Function Documentation

◆ get()

template<typename T >
std::pair<std::optional<T>, ErrorType> PDFxTMD::ConfigWrapper::get ( const std::string &  key) const
inline

◆ initializeEmptyYAML()

void PDFxTMD::ConfigWrapper::initializeEmptyYAML ( )
inline

◆ loadFromFile()

bool PDFxTMD::ConfigWrapper::loadFromFile ( const std::filesystem::path &  filepath,
Format  format 
)

◆ loadFromString()

bool PDFxTMD::ConfigWrapper::loadFromString ( const std::string &  data_string,
Format  format 
)

◆ saveToFile()

bool PDFxTMD::ConfigWrapper::saveToFile ( const std::string &  filename) const

◆ set()

template<typename T >
bool PDFxTMD::ConfigWrapper::set ( const std::string &  key,
const T &  value 
)
inline

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