MeVisLab Toolbox Reference
mlSRDocBase.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
5 
10 //----------------------------------------------------------------------------------
11 
12 #ifndef __mlSRDocBase_H
13 #define __mlSRDocBase_H
14 
16 #include "mlBase.h"
17 #include <FMEThirdPartyWarningsDisable.h>
18 #include <boost/shared_ptr.hpp>
19 #include <dcmtk/dcmsr/dsrdoc.h>
20 #include <dcmtk/dcmdata/dcfilefo.h>
21 #include <FMEThirdPartyWarningsRestore.h>
22 #include <DCMTree_Tree.h>
23 
25 typedef boost::shared_ptr<DcmFileFormat> DcmFileFormatPtr;
26 
28 typedef boost::shared_ptr<DSRDocument> DSRDocumentPtr;
29 
30 ML_START_NAMESPACE
31 
32 // ------------------------------------------------------------------
34 // ------------------------------------------------------------------
36 {
37 public:
38 
42  SRDoc(std::string dcmFileName="",
43  size_t flags=0,
45 
47  ~SRDoc() override;
48 
51 
53  DSRDocumentPtr getSRDocumentIOD() { return _internalObjectPtr; }
54 
56  bool isValid() { return _internalObjectPtr != NULL; }
57 
59  std::string recentMessages;
60 
61 private:
62 
64  DcmFileFormatPtr _dcmFilePtr;
65 
67  std::string _tmpDCMTreeFileName;
68 
70  DCMTree::Const_TreePtr _dcmTree;
71 
73  DSRDocumentPtr _internalObjectPtr;
74 
77 };
78 
79 ML_END_NAMESPACE
80 
81 #endif // __mlSRDoc_H
82 
Project global and OS specific declarations.
#define ML_MULTIFILE_VOLUME_LIST_DCMTK_OUTPUTS_EXPORT
DLL export macro definition.
Class representing general ML objects that support import/export via strings (setPersistentState() an...
Definition: mlBase.h:59
Base object class for passing DSRDocuments between MeVisLab modules.
Definition: mlSRDocBase.h:36
DSRDocumentPtr getSRDocumentIOD()
Get the SRDoc dcmtk object.
Definition: mlSRDocBase.h:53
void setSRDocumentIOD(DSRDocumentPtr rtDosePtr)
Set the SRDoc dcmtk object and collect all referenced dcmtk objects.
bool isValid()
Return true if wrapped SRDocumentIOD object is valid.
Definition: mlSRDocBase.h:56
std::string recentMessages
Contains messages from the recent operation if there are any.
Definition: mlSRDocBase.h:59
~SRDoc() override
Destructor.
SRDoc(std::string dcmFileName="", size_t flags=0, DCMTree::Const_TreePtr dcmTree=DCMTree::Const_TreePtr())
Constructor.
boost::shared_ptr< DcmFileFormat > DcmFileFormatPtr
Boost shared pointer managing a DcmFileFormat object.
#define ML_CLASS_HEADER(className)
Same like ML_CLASS_HEADER_EXPORTED with a non-existing export symbol.
boost::shared_ptr< DcmFileFormat > DcmFileFormatPtr
Boost shared pointer managing a DcmFileFormat object.
Definition: mlSRDocBase.h:25
boost::shared_ptr< DSRDocument > DSRDocumentPtr
Boost shared pointer managing a DSRDocument object.
Definition: mlSRDocBase.h:28
boost::shared_ptr< const Tree > Const_TreePtr
Definition: DCMTree_Lib.h:67