00001 /*========================================================================= 00002 00003 Program: gdcm 00004 Module: $RCSfile: gdcmValEntry.h,v $ 00005 Language: C++ 00006 Date: $Date: 2005/02/02 16:18:49 $ 00007 Version: $Revision: 1.39 $ 00008 00009 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de 00010 l'Image). All rights reserved. See Doc/License.txt or 00011 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. 00012 00013 This software is distributed WITHOUT ANY WARRANTY; without even 00014 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00015 PURPOSE. See the above copyright notices for more information. 00016 00017 =========================================================================*/ 00018 00019 #ifndef GDCMVALENTRY_H 00020 #define GDCMVALENTRY_H 00021 00022 #include "gdcmDocEntry.h" 00023 #include "gdcmContentEntry.h" 00024 00025 #include <iostream> 00026 00027 namespace gdcm 00028 { 00029 //----------------------------------------------------------------------------- 00039 class GDCM_EXPORT ValEntry : public ContentEntry 00040 { 00041 public: 00042 00043 // Contructors and Destructor are public. 00044 ValEntry(DictEntry *e); 00045 ValEntry(DocEntry *d); 00046 00047 ~ValEntry(); 00048 00049 // Other accessors are inherited from gdcm::ContentEntry 00050 00051 void Print(std::ostream &os = std::cout,std::string const & indent = ""); 00052 00053 void WriteContent(std::ofstream *fp, FileType filetype); 00054 00057 void SetValue(std::string const &val); 00058 00059 protected: 00060 00061 private: 00062 00063 }; 00064 00065 } // end namespace gdcm 00066 00067 //----------------------------------------------------------------------------- 00068 #endif 00069