MeVisLab Toolbox Reference
mlPrivateDICOMTagDecoder.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2012, 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 
15 
16 #pragma once
17 
20 
21 // DICOM and list classes.
22 #include <DCMTree_Lib.h>
23 #include <ThirdPartyWarningsDisable.h>
24 #include <list>
25 #include <ThirdPartyWarningsRestore.h>
26 
27 ML_START_NAMESPACE
28 
29 //----------------------------------------------------------------------------------
31 //----------------------------------------------------------------------------------
33 {
34  public:
40 
43 
53  virtual PrivateDICOMTagDecoderPluginBase::DecodeStates decodePrivateTag(const std::string &privateCreator,
54  DCMTree::Const_TagPtr tagPtr,
55  PrivateDICOMTagValueFields &resultFields);
56 
59 
63 
64  protected:
66  std::list<PrivateDICOMTagDecoderPluginBase*> _decoderList;
67 
68  private:
72 };
73 
74 ML_END_NAMESPACE
#define MLPRIVATEDICOMTAGDECODERS_EXPORT
Project global and OS specific declarations.
std::map< DCMTree::RawTagId, std::string > PrivateCreatorIdMap
A type storing tag group ids for strings found in private tags (tags with odd numbers and id 0x10-0xF...
Class decoding all private DICOM tags it finds decoders for to a PrivateDICOMTagValueFields container...
virtual ~PrivateDICOMTagDecoder()
Destroys the decoder and the list of internally created decoder instances.
PrivateDICOMTagDecoder(PrivateDICOMTagDecoderPluginBase::PrivateCreatorIdMap *privateCreatorMap=nullptr)
Creates a list of decoders decoder for private DICOM tags by collecting all available registered DICO...
virtual PrivateDICOMTagDecoderPluginBase::DecodeStates decodePrivateTag(const std::string &privateCreator, DCMTree::Const_TagPtr tagPtr, PrivateDICOMTagValueFields &resultFields)
Function trying to decode the content of a private tag tagPtr to a list of values which are appended ...
std::list< PrivateDICOMTagDecoderPluginBase * > _decoderList
List of tag decoder instances who have been found via the runtime type system.
PrivateDICOMTagDecoderPluginBase::PrivateCreatorIdMap * getPrivateCreatorMap() const
Return the pointer to the map of known private creators or NULL.
void setPrivateCreatorMap(PrivateDICOMTagDecoderPluginBase::PrivateCreatorIdMap *pcm)
Sets the pointer to the map which stores a set of known private creators, typically from the currentl...
List type managing and maintaining a number of PrivateDICOMTagValueFields::PrivateTagField containers...
boost::shared_ptr< const Tag > Const_TagPtr
Definition: DCMTree_Lib.h:63