Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
deskflow::Config Class Reference

App configuration. More...

#include <Config.h>

Classes

class  NoConfigFilenameError
class  ParseError

Public Member Functions

 Config (const std::string &filename, const std::string &section)
bool load (const std::string &firstArg)
const char *const * argv () const
int argc () const

Detailed Description

App configuration.

Parses a configuration file describing start args and potentially other configuration options in future. The configuration file is in TOML format.

Initially this class was created to as a developer convenience; it is a convenient place to specify args without needing to fiddle with IDE configs.

Constructor & Destructor Documentation

◆ Config()

deskflow::Config::Config ( const std::string & filename,
const std::string & section )
explicit

Member Function Documentation

◆ argc()

int deskflow::Config::argc ( ) const

◆ argv()

const char *const * deskflow::Config::argv ( ) const

◆ load()

bool deskflow::Config::load ( const std::string & firstArg)

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