This class encapsulates data structures and operations for modifying Dicom files from the commandline.
More...
This class encapsulates data structures and operations for modifying Dicom files from the commandline.
Definition at line 69 of file mdfconen.h.
MdfConsoleEngine::MdfConsoleEngine |
( |
int |
argc, |
|
|
char * |
argv[], |
|
|
const char * |
appl_name |
|
) |
| |
Constructor.
- Parameters
-
argc | Number of commandline arguments |
argv | Array holding the commandline arguments |
appl_name | Name of calling application, that instantiates this class |
OFCondition MdfConsoleEngine::backupFile |
( |
const char * |
file_name | ) |
|
|
protected |
Backup given file from file to file.bak.
- Parameters
-
file_name | filename of file, that should be backuped |
- Returns
- OFCondition, whether backup was successful or not
int MdfConsoleEngine::executeJob |
( |
const MdfJob & |
job, |
|
|
const char * |
filename = NULL |
|
) |
| |
|
protected |
Executes given modify job.
- Parameters
-
job | job to be executed |
filename | name of the file to be processed (optional) |
- Returns
- returns 0 if no error occured, else the number of errors
static OFBool MdfConsoleEngine::jobOptionExpectsParameters |
( |
const OFString & |
job | ) |
|
|
staticprotected |
Checks whether given job expects more values on commandline, e.
g. a a tag path or any kind of value.
- Parameters
-
job | [in] The job option to check (e. g. "i", "m", "ma"...) |
- Returns
- OFTrue, if a value is expected.
OFCondition MdfConsoleEngine::loadFile |
( |
const char * |
filename | ) |
|
|
protected |
Backup and load file into internal MdfDatasetManager.
- Parameters
-
filename | name of file to load |
- Returns
- OFCondition, whether loading/backuping was successful including error description
void MdfConsoleEngine::parseCommandLine |
( |
| ) |
|
|
protected |
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
void MdfConsoleEngine::parseNonJobOptions |
( |
| ) |
|
|
protected |
Checks for non-job commandline options like –debug etc.
and sets corresponding internal flags
OFCondition MdfConsoleEngine::restoreFile |
( |
const char * |
filename | ) |
|
|
protected |
Restore given file from file.bak to original (without .bak)
- Parameters
-
filename | restore "filename".bak to original without .bak |
- Returns
- OFCondition, whether restoring was successful
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"
- Parameters
-
whole | string to be splitted |
path | returns part containing the path |
value | returns part containing the value(if theres one) |
int MdfConsoleEngine::startProvidingService |
( |
| ) |
|
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.
- Returns
- Returns 0 if successful, another value if errors occurreds
The documentation for this class was generated from the following file: