Program: gdcm
Module: $RCSfile: gdcmContentEntry.h,v $
Language: C++
- Date: $Date: 2005/01/25 15:21:20 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2005/09/02 07:10:03 $
+ Version: $Revision: 1.6 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
public:
virtual void WriteContent(std::ofstream *fp, FileType filetype) = 0;
- // Accessors are protected, not to be invoked by end user
/// Sets the value (string) of the current Dicom entry
- virtual void SetValue(std::string const &val) { Value = val; };
-
- void SetValueOnly(std::string const &val) { Value = val; };
-
- /// \brief Returns the 'Value' (e.g. "Dupond Marcel") converted
+ virtual void SetValue(std::string const &val) { Value = val; }
+ /// \brief Returns the 'Value' (e.g. "Dupond^Marcel") converted
/// into a 'string', event if it's physically stored on disk as an integer
- std::string const &GetValue() const { return Value; };
+ /// (e.g. : 0x000c returned as "12")
+ std::string const &GetValue() const { return Value; }
-protected:
+ void Copy(DocEntry *doc);
+protected:
// Contructors are protected, not to be invoked by end user.
ContentEntry(DictEntry *e);
ContentEntry(DocEntry *d);
// Destructor is protected, not to be invoked by end user.
~ContentEntry();
-
+
private:
// Members :
-
/// \brief Dicom entry value, internaly represented as a std::string.
/// The Value Representation (\ref VR) is independently used
/// in order to interpret (decode) this field.