Program: gdcm
Module: $RCSfile: gdcmDataEntry.h,v $
Language: C++
- Date: $Date: 2005/11/21 09:46:25 $
- Version: $Revision: 1.10 $
+ Date: $Date: 2006/03/01 09:29:29 $
+ Version: $Revision: 1.13 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#include "gdcmDocEntry.h"
+#include <vector> // for GetDSValue
#include <iostream>
namespace gdcm
// Set/Get data
// Sets the value (string) of the current Dicom entry
//virtual void SetValue(std::string const &val);
- /// \brief Returns the 'Value' (e.g. "Dupond^Marcel") converted
- /// into a 'string', event if it's physically stored on disk as an integer
- /// (e.g. : 0x000c returned as "12")
- //virtual std::string const &GetValue() const { return Value; }
/// \brief Returns the area value of the current Dicom Entry
/// when it's not string-translatable (e.g : LUT table, overlay, icon)
void SetValue(const uint32_t &id,const double &val);
double GetValue(const uint32_t &id) const;
- uint32_t GetValueCount(void) const;
+ uint32_t GetValueCount() const;
bool IsValueCountValid() const;
void SetString(std::string const &value);
/// \brief true id Entry is a Pixel Data entry
bool IsPixelData() { return (Flag &FLAG_PIXELDATA) != 0; }
- void Copy(DocEntry *doc);
+ virtual void Copy(DocEntry *doc);
/// \brief returns the size threshold above which an element value
/// will NOT be *printed* in order no to polute the screen output
static void SetMaxSizePrintEntry(const uint32_t &size)
{ MaxSizePrintEntry = size; }
+ bool GetDSValue(std::vector <double> &valueVector);
+
protected:
DataEntry(DictEntry *e);
DataEntry(DocEntry *d);
~DataEntry();
// Methods :
- void NewBinArea(void);
- void DeleteBinArea(void);
+ void NewBinArea( );
+ void DeleteBinArea( );
// Members :
/// \brief memory area to hold 'non std::string' representable values