MeVisLab Toolbox Reference
mlPrivateDICOMTagValueFields.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 #ifndef ML_PRIVATE_DICOMTAG_VALUE_FIELDS_H
14 #define ML_PRIVATE_DICOMTAG_VALUE_FIELDS_H
15 
16 
19 
21 #include "mlPrivateDICOMTagInfos.h"
22 #include "mlTypeDefs.h"
23 
24 #include <list>
25 
26 ML_START_NAMESPACE
27 
28 //----------------------------------------------------------------------------------
31 //----------------------------------------------------------------------------------
33 {
34  public:
35 
38 
41 
43  void setDecoderName(const std::string &decoderName);
44 
46  const std::string &getDecoderName() const;
47 
49  std::list<PrivateDICOMTagInfos> &getFieldList();
50 
52  const std::list<PrivateDICOMTagInfos> &getFieldList() const;
53 
55  void clear();
56 
65  std::string getStringDump(const std::string &prefix = " ",
66  bool showVM = false,
67  size_t appMaxSize = std::string::npos) const;
68 
79  virtual void addInformation(bool isValidTagInfo,
80  const std::string & otherInfo="",
81  const std::string & tagName="",
82  const std::string & tagValue="",
83  unsigned short tagGroupId=0,
84  unsigned short tagElementId=0,
85  bool isValidId=false,
86  const std::string & tagVr="",
87  const std::string & tagVm="");
88 
89  protected:
90 
92  std::string _decoderName;
93 
95  std::list<PrivateDICOMTagInfos> _fieldList;
96 };
97 
98 ML_END_NAMESPACE
99 
100 #endif
#define MLPRIVATEDICOMTAGDECODERS_EXPORT
Project global and OS specific declarations.
List type managing and maintaining a number of PrivateDICOMTagValueFields::PrivateTagField containers...
void clear()
Clear and delete all elements.
const std::list< PrivateDICOMTagInfos > & getFieldList() const
Returns the constant list of fields.
std::string _decoderName
Name of the decoder who filled *this with information.
std::list< PrivateDICOMTagInfos > _fieldList
List of extracted fields managed by this class.
virtual void addInformation(bool isValidTagInfo, const std::string &otherInfo="", const std::string &tagName="", const std::string &tagValue="", unsigned short tagGroupId=0, unsigned short tagElementId=0, bool isValidId=false, const std::string &tagVr="", const std::string &tagVm="")
Convenience method to add a new field information to the container.
void setDecoderName(const std::string &decoderName)
Stores decoderName as the name of the decoder who filled the fields.
PrivateDICOMTagValueFields()
Default constructor creating an empty list.
std::string getStringDump(const std::string &prefix=" ", bool showVM=false, size_t appMaxSize=std::string::npos) const
Return all field values dumped in one string, where prefix is added before each field output line in ...
std::list< PrivateDICOMTagInfos > & getFieldList()
Returns the list of fields.
const std::string & getDecoderName() const
Returns the name of the decoder who filled the fields.
virtual ~PrivateDICOMTagValueFields()
Default constructor creating an empty list.