The ConfigOpts class stores all config options, settings, and flags for clerk. More...
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <sys/stat.h>
#include <dirent.h>
Go to the source code of this file.
Classes | |
class | ConfigOpts |
Stores all config options, settings, and flags for clerk. More... | |
Macros | |
#define | MKDIR "mkdir -p " |
#define | COPY "cp " |
#define | MOVE "mv " |
#define | RENAME "mv " |
#define | SCRIPT1 "#!/bin/bash" |
#define | SCRIPT2 "sh" |
#define | SLASH "/" |
#define | LOC1 "./" |
#define | LOC2 "/etc/clerk/" |
#define | LOC3 "/usr/share/clerk/" |
The ConfigOpts class stores all config options, settings, and flags for clerk.
Checks the existence of a configuration file, and stores the options then reads and stores the arguments from the command line. Recreates the showlist, blacklist, and config files. Creates vectors to store the show list, black list, and files list. Prints help and version information.
Definition in file options.hpp.
#define COPY "cp " |
Definition at line 27 of file options.hpp.
#define LOC1 "./" |
Definition at line 33 of file options.hpp.
#define LOC2 "/etc/clerk/" |
Definition at line 34 of file options.hpp.
#define LOC3 "/usr/share/clerk/" |
Definition at line 35 of file options.hpp.
#define MKDIR "mkdir -p " |
Definition at line 26 of file options.hpp.
#define MOVE "mv " |
Definition at line 28 of file options.hpp.
#define RENAME "mv " |
Definition at line 29 of file options.hpp.
#define SCRIPT1 "#!/bin/bash" |
Definition at line 30 of file options.hpp.
#define SCRIPT2 "sh" |
Definition at line 31 of file options.hpp.
#define SLASH "/" |
Definition at line 32 of file options.hpp.