GDCM  2.4.5
gdcmValue.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: GDCM (Grassroots DICOM). A DICOM library
4 
5  Copyright (c) 2006-2011 Mathieu Malaterre
6  All rights reserved.
7  See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 
13 =========================================================================*/
14 #ifndef GDCMVALUE_H
15 #define GDCMVALUE_H
16 
17 #include "gdcmObject.h"
18 
19 namespace gdcm { class VL; }
20 namespace gdcm_ns
21 {
22 #if !defined(SWIGPYTHON) && !defined(SWIGCSHARP) && !defined(SWIGJAVA) && !defined(SWIGPHP)
23 using namespace gdcm;
24 #endif
25 
31 class GDCM_EXPORT Value : public Object
32 {
33 public:
34  Value() {}
35  ~Value() {}
36 
37  virtual VL GetLength() const = 0;
38  virtual void SetLength(VL l) = 0;
39 
40  virtual void Clear() = 0;
41 
42  virtual bool operator==(const Value &val) const = 0;
43 
44 protected:
45  friend class DataElement;
46  virtual void SetLengthOnly(VL l);
47 };
48 
49 } // end namespace gdcm_ns
50 
51 #include "gdcmValue.txx"
52 
53 #endif //GDCMVALUE_H
Class to represent the value of a Data Element.
Definition: gdcmValue.h:31
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
Value Length.
Definition: gdcmVL.h:29
Object.
Definition: gdcmObject.h:36
Class to represent a Data Element either Implicit or Explicit.
Definition: gdcmDataElement.h:58
bool operator==(const CodeString &ref, const CodeString &cs)
Definition: gdcmCodeString.h:93
Value()
Definition: gdcmValue.h:34
Definition: gdcmASN1.h:20
~Value()
Definition: gdcmValue.h:35

Generated on Fri Sep 25 2015 17:58:24 for GDCM by doxygen 1.8.9.1
SourceForge.net Logo