Program: gdcm
Module: $RCSfile: gdcmBinEntry.cxx,v $
Language: C++
- Date: $Date: 2004/08/01 03:20:23 $
- Version: $Revision: 1.21 $
+ Date: $Date: 2004/08/16 16:30:32 $
+ Version: $Revision: 1.22 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
*/
gdcmBinEntry::gdcmBinEntry(gdcmDictEntry* e) : gdcmValEntry(e)
{
- voidArea = NULL;
+ VoidArea = NULL;
}
/**
PrintLevel = e->GetPrintLevel();
SQDepthLevel = e->GetDepthLevel();
- voidArea = NULL; // let's be carefull !
+ VoidArea = NULL; // let's be carefull !
}
/**
*/
gdcmBinEntry::~gdcmBinEntry()
{
- if (voidArea)
+ if (VoidArea)
{
- free (voidArea);
- voidArea = NULL; // let's be carefull !
+ free (VoidArea);
+ VoidArea = NULL; // let's be carefull !
}
}
Program: gdcm
Module: $RCSfile: gdcmBinEntry.h,v $
Language: C++
- Date: $Date: 2004/07/02 13:55:27 $
- Version: $Revision: 1.12 $
+ Date: $Date: 2004/08/16 16:30:32 $
+ 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
* (when successfuly parsed against a given Dicom dictionary)
* This one contains a 'string value'.
*/
-class GDCM_EXPORT gdcmBinEntry : public gdcmValEntry {
-
+class GDCM_EXPORT gdcmBinEntry : public gdcmValEntry
+{
public:
gdcmBinEntry(gdcmDictEntry* e);
gdcmBinEntry(gdcmDocEntry* d);
- ~gdcmBinEntry(void);
+ ~gdcmBinEntry();
void Print(std::ostream &os = std::cout);
virtual void Write(FILE*, FileType);
/// \brief Returns the area value of the current Dicom Header Entry
/// when it's not string-translatable (e.g : a LUT table)
- void* GetVoidArea(void) { return voidArea; };
+ void* GetVoidArea() { return VoidArea; };
/// \brief Sets the value (non string) of the current Dicom Header Entry
- void SetVoidArea(void * area) { voidArea = area; };
+ void SetVoidArea(void * area) { VoidArea = area; };
protected:
/// \brief unsecure memory area to hold 'non string' values
/// (ie : Lookup Tables, overlays, icons)
- // void *voidArea;
+ // void *VoidArea;
};
Program: gdcm
Module: $RCSfile: gdcmValEntry.cxx,v $
Language: C++
- Date: $Date: 2004/08/01 03:20:23 $
- Version: $Revision: 1.20 $
+ Date: $Date: 2004/08/16 16:30:32 $
+ Version: $Revision: 1.21 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
*/
gdcmValEntry::gdcmValEntry(gdcmDictEntry* e) : gdcmDocEntry(e)
{
- voidArea = NULL; // will be in BinEntry ?
+ VoidArea = NULL; // will be in BinEntry ?
}
/**
PrintLevel = e->GetPrintLevel();
SQDepthLevel = e->GetDepthLevel();
- voidArea = NULL; // will be in BinEntry ?
+ VoidArea = NULL; // will be in BinEntry ?
}
*/
gdcmValEntry::~gdcmValEntry ()
{
- if (!voidArea) // will be in BinEntry
+ if (!VoidArea) // will be in BinEntry
{
- free(voidArea);
- voidArea = NULL; // let's be carefull !
+ free(VoidArea);
+ VoidArea = NULL; // let's be carefull !
}
}
Program: gdcm
Module: $RCSfile: gdcmValEntry.h,v $
Language: C++
- Date: $Date: 2004/08/01 00:59:22 $
- Version: $Revision: 1.19 $
+ Date: $Date: 2004/08/16 16:30:32 $
+ Version: $Revision: 1.20 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
/// \brief Returns the 'Value' (e.g. "Dupond Marcel") converted into a
/// 'string', if it's stored as an integer in the header of the
/// current Dicom Document Entry
- std::string GetValue() { return value; };
+ std::string GetValue() { return Value; };
/// Sets the value (string) of the current Dicom Document Entry
- void SetValue(std::string const & val) { value = val; };
+ void SetValue(std::string const & val) { Value = val; };
/// Sets the value (void *) of the current Dicom Document Entry
- void SetVoidArea(void * val) { voidArea = val; };
+ void SetVoidArea(void * val) { VoidArea = val; };
virtual void Print(std::ostream &os = std::cout);
virtual void Write(FILE *fp, FileType filetype);
protected:
/// \brief for 'non string' values. Will be move to gdcmBinEntry, later
- void* voidArea; // clean it out later
+ void* VoidArea; // clean it out later
private:
// Members :
/// \brief Document Entry value, internaly represented as a std::string
/// The Value Representation (\ref gdcmVR) is independently used
/// in order to interpret (decode) this field.
- std::string value;
+ std::string Value;
};
//-----------------------------------------------------------------------------