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
37namespace DCMTree
38{
40 {
41 public:
43 Dump (DictPtr dict);
44
46 ~Dump() override = default;
47
51 void write(const Const_IOParameterPtr& parameter,MessagePtr towrite) override;
52
53 private:
57 static std::string indentstr (unsigned int level);
58
62 void Write (std::ostream &stream,TreePtr towrite,unsigned indent);
63 };
64}
65
66#endif
67
68
#define DCMTREE_EXPORT
~Dump() override=default
dtor
Dump(DictPtr dict)
ctor
void write(const Const_IOParameterPtr &parameter, MessagePtr towrite) override
write 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 this class could be used as a starte...
boost::shared_ptr< Message > MessagePtr
Definition DCMTree_Lib.h:76
boost::shared_ptr< const IOParameter > Const_IOParameterPtr
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree
Definition DCMTree_Lib.h:72
boost::shared_ptr< Dict > DictPtr
shared-pointer to a DCMTree::Dict