Public Member Functions | |
MdfDatasetManager (const OFBool debug) | |
Constructor, initializes member-variables. | |
~MdfDatasetManager () | |
Destructor. | |
OFCondition | loadFile (const char *file_name) |
Loads a file into Datasetmanager. | |
OFCondition | modifyOrInsertTag (OFString tag_path, const OFString &value, const OFBool &only_modify) |
Modifies/Inserts a tag with a specific value. | |
OFCondition | modifyAllTags (OFString tag_path, const OFString &value, int &count) |
Modifies all matching tags in Dataset to a new value. | |
OFCondition | deleteTag (OFString tag_path, const OFBool &all_tags) |
Deletes tag in Dataset. | |
OFCondition | saveFile (const char *file) |
Saves current Dataset back to a file. | |
OFCondition | saveFile () |
Saves current Dataset back to file using original filename. | |
DcmDataset * | getDataset () |
Returns the Dataset, that this MdfDatasetManager handles. | |
DcmFileFormat * | getFileFormat () |
Returns the DcmFileFormat, that this MdfDatasetManager handles. | |
OFString | getFilename () |
Returns filename of the file, that's loaded actually. | |
Static Public Member Functions | |
void | debugMsg (const OFString &s1, const OFString &s2, const OFString &s3) |
The function handles three strings, that are directly printed after another to CERR. | |
Protected Member Functions | |
OFCondition | startModify (DcmElement *elem, const OFString &value) |
modifies element to a specific value | |
OFCondition | startInsert (DcmItem *item, DcmTagKey &search_key, const OFString &value) |
inserts tag into item with a specific value | |
Protected Attributes | |
OFString | act_file |
name of file, that is loaded actually | |
DcmFileFormat * | dfile |
will hold file to modify | |
DcmDataset * | dset |
will hold dset, we want to modify | |
OFBool | debug_option |
enable debug-messages | |
Private Member Functions | |
MdfDatasetManager & | operator= (const MdfDatasetManager &) |
private undefined assignment operator | |
MdfDatasetManager (const MdfDatasetManager &) | |
private undefined copy constructor |
Therefore it allows the process of load->modify->save to provide this service.
Definition at line 49 of file mdfdsman.h.
|
Constructor, initializes member-variables.
|
|
The function handles three strings, that are directly printed after another to CERR.
The whole message is then terminated by
|
|
Deletes tag in Dataset.
|
|
Returns the Dataset, that this MdfDatasetManager handles. You should use the returned object with care to avoid sideeffects with other class-methods, that modify this object, too.
|
|
Returns the DcmFileFormat, that this MdfDatasetManager handles. You should use the returned object with care to avoid sideeffects with other class-methods, that modify this object, too.
|
|
Returns filename of the file, that's loaded actually.
|
|
Loads a file into Datasetmanager.
|
|
Modifies all matching tags in Dataset to a new value.
|
|
Modifies/Inserts a tag with a specific value.
|
|
Saves current Dataset back to file using original filename.
|
|
Saves current Dataset back to a file. Caution: After saving MdfDatasetManager keeps working on old filename.
|
|
inserts tag into item with a specific value
|
|
modifies element to a specific value
|