Configuration, path and pages management. More...
#include <config.h>
Public Member Functions | |
Config (void) | |
Config constructor. More... | |
int | getChars () |
Returns the max PATH length. More... | |
int | getPages () |
Returns the number of generated pages. More... | |
char * | getPath () |
Returns the current PATH. More... | |
void | setChars (int) |
Set the max PATH length. More... | |
void | setPages (int) |
Set the num of pages to be generated. More... | |
void | setPath (char *) |
Set a new PATH to be used. More... | |
void | saveConfig () |
Save the config to the default PATH If the config file doesnt exist it will create it with default values. More... | |
Configuration, path and pages management.
Config::Config | ( | void | ) |
int Config::getChars | ( | ) |
Returns the max PATH length.
int Config::getPages | ( | ) |
Returns the number of generated pages.
char * Config::getPath | ( | ) |
Returns the current PATH.
void Config::saveConfig | ( | void | ) |
Save the config to the default PATH
If the config file doesnt exist it will create it with default values.
void Config::setChars | ( | int | chars | ) |
Set the max PATH length.
chars | MAX_CHARS (int) |
void Config::setPages | ( | int | pages | ) |
Set the num of pages to be generated.
pages | MAX_PAGES (int) |
void Config::setPath | ( | char * | path | ) |
Set a new PATH to be used.