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 | parseNonJobOptions () |
| Checks for non-job commandline options like --debug etc. | |
| void | parseCommandLine () |
| Parses commandline options into corresponding file- and job lists and enables debug/verbose mode. | |
| 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. | |
| 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). | |
| void | debugMsg (const OFBool &condition, const OFString &s1, const OFString &s2, const OFString &s3) |
| The function handles three strings, that are directly printed after another. | |
Protected Attributes | |
| OFConsoleApplication * | app |
| helper class for console applications | |
| OFCommandLine * | cmd |
| helper class for commandline parsing | |
| MdfDatasetManager * | ds_man |
| ds_man holds dataset manager, that is used for modify operations | |
| OFBool | verbose_option |
| verbose mode | |
| OFBool | debug_option |
| debug mode | |
| OFBool | ignore_errors_option |
| ignore errors option | |
| OFBool | update_metaheader_uids_option |
| E_FileReadMode | read_mode_option |
| read file with or without metaheader | |
| E_TransferSyntax | input_xfer_option |
| denotes the expected transfersyntax | |
| OFBool | output_dataset_option |
| decides whether to with/without metaheader | |
| E_TransferSyntax | output_xfer_option |
| denotes the transfer syntax that should be written | |
| E_GrpLenEncoding | glenc_option |
| option for group length recalcing | |
| E_EncodingType | enctype_option |
| write explicit or implicit length encoding | |
| E_PaddingEncoding | padenc_option |
| padding output | |
| OFCmdUnsignedInt | filepad_option |
| internal padding variables | |
| OFCmdUnsignedInt | itempad_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 69 of file mdfconen.h.
|
||||||||||||||||
|
Constructor.
|
|
|
Backup given file from file to file.bak.
|
|
||||||||||||||||||||
|
The function handles three strings, that are directly printed after another.
The whole message is then terminated by
|
|
|
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 |
|
|
Checks for non-job commandline options like --debug etc. and sets corresponding internal flags |
|
|
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.
|