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 <ThirdPartyWarningsDisable.h>
18 #include <boost/shared_ptr.hpp>
19 #include <dcmtk/dcmsr/dsrdoc.h>
20 #include <dcmtk/dcmdata/dcfilefo.h>
21 #include <ThirdPartyWarningsRestore.h>
22 
24 typedef boost::shared_ptr<DcmFileFormat> DcmFileFormatPtr;
25 
27 typedef boost::shared_ptr<DSRDocument> DSRDocumentPtr;
28 
29 ML_START_NAMESPACE
30 
31 // ------------------------------------------------------------------
33 // ------------------------------------------------------------------
35 {
36 public:
37 
41  SRDoc(const std::string &dcmFileName="",
42  size_t flags=0);
43 
46 
48  DSRDocumentPtr getSRDocumentIOD() { return _internalObjectPtr; }
49 
51  bool isValid() { return _internalObjectPtr != NULL; }
52 
54  std::string recentMessages;
55 
56 private:
57 
59  DcmFileFormatPtr _dcmFilePtr;
60 
62  DSRDocumentPtr _internalObjectPtr;
63 
66 };
67 
68 ML_END_NAMESPACE
69 
70 #endif // __mlSRDoc_H
71 
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:62
Base object class for passing DSRDocuments between MeVisLab modules.
Definition: mlSRDocBase.h:35
DSRDocumentPtr getSRDocumentIOD()
Get the SRDoc dcmtk object.
Definition: mlSRDocBase.h:48
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:51
std::string recentMessages
Contains messages from the recent operation if there are any.
Definition: mlSRDocBase.h:54
SRDoc(const std::string &dcmFileName="", size_t flags=0)
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:24
boost::shared_ptr< DSRDocument > DSRDocumentPtr
Boost shared pointer managing a DSRDocument object.
Definition: mlSRDocBase.h:27