GDCM: gdcmValue.h Source File

GDCM 3.2.7

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
31 class 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
gdcm::Object::Object
Object()
Definition gdcmObject.h:42
gdcm::VL
Value Length.
Definition gdcmVL.h:30
gdcm::Value::Clear
virtual void Clear()=0
gdcm::Value::operator==
virtual bool operator==(const Value &val) const =0
gdcm::Value::SetLengthOnly
virtual void SetLengthOnly(VL l)
gdcm::Value::Value
Value()=default
gdcm::Value::DataElement
friend class DataElement
Definition gdcmValue.h:45
gdcm::Value::~Value
~Value() override=default
gdcm::Value::SetLength
virtual void SetLength(VL l)=0
gdcm::Value::GetLength
virtual VL GetLength() const =0
gdcmObject.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21