Public Member Functions | |
MdfConsoleEngine (int argc, char *argv[], const char *appl_name) | |
Constructor. | |
~MdfConsoleEngine () | |
Destructor. | |
int | startProvidingService () |
This function looks at commandline options and decides what to do. | |
Protected Member Functions | |
void | splitPathAndValue (const OFString &whole, OFString &path, OFString &value) |
This function splits a modify-option (inclusive value) as found on commandline into to parts (path and value) e.g. | |
int | executeJob (const MdfJob &job) |
Executes given modify-job. | |
void | parseCommandLine () |
Parses commandline options into corresponding file- and job-lists and enables debug/verbose mode. | |
OFCondition | loadFile (const char *filename) |
Backup and load file into internal MdfDatasetManager. | |
OFCondition | backupFile (const char *file_name) |
Backup given file from file to file.bak. | |
OFCondition | restoreFile (const char *filename) |
Restore given file from file.bak to original (without .bak). | |
Protected Attributes | |
OFConsoleApplication * | app |
helper class for console-applications | |
OFCommandLine * | cmd |
helper class for command-line-parsing | |
MdfDatasetManager * | ds_man |
ds_man holds DatasetManager, that is used for modify operations | |
OFBool | verbose_option |
verbose mode | |
OFBool | debug_option |
debug mode | |
OFBool | ignore_errors_option |
ignore errors option | |
OFList< MdfJob > * | jobs |
list of jobs to be executed | |
OFList< OFString > * | files |
list of files to be modified | |
Private Member Functions | |
MdfConsoleEngine & | operator= (const MdfConsoleEngine &) |
private undefined assignment operator | |
MdfConsoleEngine (const MdfConsoleEngine &) | |
private undefined copy constructor |
Definition at line 70 of file mdfconen.h.
|
Constructor.
|
|
Backup given file from file to file.bak.
|
|
Executes given modify-job.
|
|
Backup and load file into internal MdfDatasetManager.
|
|
Parses commandline options into corresponding file- and job-lists and enables debug/verbose mode. The joblist is built in order of modify options on commandline |
|
Restore given file from file.bak to original (without .bak).
|
|
This function splits a modify-option (inclusive value) as found on commandline into to parts (path and value) e.g. "(0010,0010)=value" into path "(0010,0010)" and "value"
|
|
This function looks at commandline options and decides what to do. It evaluates option-values from commandline and prepares them for starting the corresponding private functions.
|