MeVisLab Toolbox Reference
mlDcmtkBaseObjects.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
5 
11 //----------------------------------------------------------------------------------
12 
13 
14 #ifndef __mlDcmtkBaseObjects_H
15 #define __mlDcmtkBaseObjects_H
16 
17 // Local includes
19 #include "mlRTBase.h"
20 #include <boost/shared_ptr.hpp>
21 
22 // ML includes
23 #include "mlModuleIncludes.h"
24 
25 
26 ML_START_NAMESPACE
27 
29 template<typename CT>
30 class DICOMCachedIOFileHandleBase;
31 typedef DICOMCachedIOFileHandleBase<char> DICOMCachedIOFileHandle;
32 
33 //----------------------------------------------------------------------------------
35 //----------------------------------------------------------------------------------
37 
38 public:
43  static RTBase* createBaseObject(const DICOMCachedIOFileHandle &fileHandle, std::string *errVal);
44 
45  static RTBase* createBaseObject(DCMTree::TreePtr dicomTreePtr, std::string *errVal);
46 
47  static RTBase* createEmptyBaseObject(std::string modality);
48 };
49 
50 ML_END_NAMESPACE
51 
52 #endif // __mlDcmtkBaseObjects_H
53 
Project global and OS specific declarations.
#define MLDCMTKBASEOBJECTS_EXPORT
The toolkit and factory class DcmtkBaseObjects.
static RTBase * createBaseObject(DCMTree::TreePtr dicomTreePtr, std::string *errVal)
static RTBase * createEmptyBaseObject(std::string modality)
static RTBase * createBaseObject(const DICOMCachedIOFileHandle &fileHandle, std::string *errVal)
Factory method to create BaseObjects depending on the dcm type, currently supported are the modalitie...
DcmtkBase derived base object class for base objects that wrap RT related objects.
Definition: mlRTBase.h:34
DcmtkBase derived base object class for base objects that wrap RT related objects.
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree
Definition: DCMTree_Lib.h:70
DICOMCachedIOFileHandleBase< char > DICOMCachedIOFileHandle
"Forward" to DICOMCachedIOFileHandle.