MeVisLab Toolbox Reference
DCMTree_Dump.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2007, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13#ifndef DCM_TREE_DUMP_H
14#define DCM_TREE_DUMP_H
15
16#include "DCMTree_Writer.h"
17#include "DCMTree_Defines.h"
18
25namespace DCMTree
26{
28 {
29 public:
31 Dump (DictPtr dict);
32
34 ~Dump() override = default;
35
39 void write(const Const_IOParameterPtr& parameter,MessagePtr towrite) override;
40
41 private:
45 static std::string indentstr (unsigned int level);
46
50 void Write (std::ostream &stream,TreePtr towrite,unsigned indent);
51 };
52}
53
54#endif
55
56
#define DCMTREE_EXPORT
~Dump() override=default
Destructor.
Dump(DictPtr dict)
Constructor.
void write(const Const_IOParameterPtr &parameter, MessagePtr towrite) override
Writes a dump of the given DCMTree::Tree to a file with the given path/name.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
Class to dump a DCMTree DICOM message into a human-readable file.
boost::shared_ptr< Message > MessagePtr
Definition DCMTree_Lib.h:70
boost::shared_ptr< const IOParameter > Const_IOParameterPtr
boost::shared_ptr< Tree > TreePtr
Shared pointer to a DCMTree::Tree.
Definition DCMTree_Lib.h:66
boost::shared_ptr< Dict > DictPtr
Shared pointer to a DCMTree::Dict.