X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDocument.h;h=d032a38859e42591cb6dad1aec99268f7939b050;hb=53bb1d7e94a7de69ecafa9e81653d3baeb2e02ad;hp=852bdcb5eefad77a1146dcf3807131eb3365054b;hpb=fbd2698cb0545343abc2d8aefe92bab1f5b3eaa3;p=gdcm.git diff --git a/src/gdcmDocument.h b/src/gdcmDocument.h index 852bdcb5..d032a388 100644 --- a/src/gdcmDocument.h +++ b/src/gdcmDocument.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocument.h,v $ Language: C++ - Date: $Date: 2005/07/07 16:37:41 $ - Version: $Revision: 1.114 $ + Date: $Date: 2005/07/17 04:28:55 $ + Version: $Revision: 1.117 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -50,7 +50,8 @@ public: typedef std::list ListElements; // Loading - virtual bool Load( std::string const &filename ); + //Deprecated : use SetFileName() + Load() + virtual bool Load( std::string const &filename ); virtual bool Load( ); // Dictionaries @@ -85,8 +86,9 @@ typedef std::list ListElements; /// Accessor to \ref Filename const std::string &GetFileName() const { return Filename; } /// Accessor to \ref Filename - void SetFileName(std::string const &fileName) { if (Filename != fileName) - Filename = fileName, IsDocumentModified = true; } + virtual void SetFileName(std::string const &fileName) + { if (Filename != fileName) + Filename = fileName, IsDocumentModified = true; } std::ifstream *OpenFile(); bool CloseFile(); @@ -111,7 +113,7 @@ typedef std::list ListElements; * @param mode Load mode to be used */ void SetLoadMode (int mode) { if (LoadMode != mode) - LoadMode = mode, IsDocumentModified = true; } + LoadMode = mode, IsDocumentModified = true; } protected: // Methods @@ -172,11 +174,12 @@ protected: /// Probabely, some more to add int LoadMode; - /// Whether the gdcm::Document is already parsed/loaded - /// - False from the creation of the gdcm::Document untill + /// \brief Whether the gdcm::Document is already parsed/loaded : + /// False from the creation of the gdcm::Document untill /// gdcm::Document:Load() bool IsDocumentAlreadyLoaded; // FIXME : probabely useless now + /// Whether the gdcm::Document was modified since the last Load() bool IsDocumentModified; private: