GDCM 3.0.24
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
19namespace gdcm { class VL; }
20namespace gdcm_ns
21{
22#if !defined(SWIGPYTHON) && !defined(SWIGCSHARP) && !defined(SWIGJAVA) && !defined(SWIGPHP)
23using namespace gdcm;
24#endif
31class GDCM_EXPORT Value : public Object
32{
33public:
34 Value() = default;
35 ~Value() override = default;
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
44protected:
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 a Data Element either Implicit or Explicit.
Definition gdcmDataElement.h:59
Object.
Definition gdcmObject.h:37
Value Length.
Definition gdcmVL.h:30
Class to represent the value of a Data Element.
Definition gdcmValue.h:32
virtual void Clear()=0
virtual bool operator==(const Value &val) const =0
virtual void SetLengthOnly(VL l)
Value()=default
~Value() override=default
virtual void SetLength(VL l)=0
virtual VL GetLength() const =0
#define GDCM_EXPORT
Definition gdcmWin32.h:34
Definition gdcmASN1.h:21