From: frog Date: Mon, 31 Mar 2003 12:02:26 +0000 (+0000) Subject: * src/gdcmHeader.h: LoadElements() is not a public method anymore X-Git-Tag: April2003 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=refs%2Ftags%2FApril2003;p=gdcm.git * src/gdcmHeader.h: LoadElements() is not a public method anymore (to avoid double call by end user). * Test/*.cxx LoadElements() doesn't need to be called explicitely by end user, since gdcmHeader::gdcmHeader now handles it. --- Frog --- diff --git a/ChangeLog b/ChangeLog index 8e91224a..157a564c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,17 +1,24 @@ +2003-03-31 Eric Boix + * src/gdcmHeader.h: LoadElements() is not a public method anymore + (to avoid double call by end user). + * Test/*.cxx LoadElements() doesn't need to be called explicitely + by end user, since gdcmHeader::gdcmHeader now handles it. + 2003-03-29 Eric Boix * gdcm/Doc many doxygen changes: - Doxyfile now has two different versions, DoxyfileUsers that generates - the html.users end users oriented documentation and DoxyfileDeveloppers - that generates the html.developper developper oriented documentation. + the html.users end users oriented documentation and + DoxyfileDeveloppers that generates the html.developper developper + oriented documentation. - README changed accordingly - requirement.txt removed (old design info moved to TODO). - - Additional files DoxyInstallation.txt, DoxyIntroduction.txt, DoxyMainPage.txt, - DoxyPython.txt provide more information. + - Additional files DoxyInstallation.txt, DoxyIntroduction.txt, + DoxyMainPage.txt, DoxyPython.txt provide more information. - Note: the website http://www.creatis.insa-lyon.fr/Public/Gdcm/ can now be updated by simply regenerating the docs with doxygen and copying html.developper and html.users to tux:/home/httpd/html/Public/Gdcm - * src/gdcmElValSet.cxx: stl .count() can only return 0 or 1. Hence all - the tests in the form "if (.count() >1)" were removed. + * src/gdcmElValSet.cxx: stl .count() can only return 0 or 1. Hence + all the tests in the form "if (.count() >1)" were removed. * src/gdcmFile.cxx: cosmetic changes to avoid messages of doxygen about ill-formed documentation sections. * src/gdcmHeader.cxx: ditto diff --git a/Testing/TestBug.cxx b/Testing/TestBug.cxx index 0d67a97d..a7fc6b9b 100644 --- a/Testing/TestBug.cxx +++ b/Testing/TestBug.cxx @@ -9,7 +9,6 @@ int main(int argc, char* argv[]) e1 = new gdcmHeader(argv[1]); else e1 = new gdcmHeader("test.acr"); - e1->LoadElements(); e1->PrintPubDict(); } diff --git a/Testing/TestChangeHeader.cxx b/Testing/TestChangeHeader.cxx index d5fcdd90..d249f67a 100644 --- a/Testing/TestChangeHeader.cxx +++ b/Testing/TestChangeHeader.cxx @@ -25,12 +25,9 @@ int main(int argc, char* argv[]) premier = argv[1]; f1 = new gdcmFile(premier); - f1->LoadElements(); deuxieme = argv[2]; f2 = new gdcmFile(deuxieme); - f2->LoadElements(); - printf("apres LoadElements\n"); //f1->PrintPubElVal(); diff --git a/src/gdcmHeader.h b/src/gdcmHeader.h index 7aec5e52..a7d2241f 100644 --- a/src/gdcmHeader.h +++ b/src/gdcmHeader.h @@ -97,6 +97,7 @@ private: void SkipElementValue(gdcmElValue *); void FixFoundLength(gdcmElValue*, guint32); bool IsAnInteger(gdcmElValue *); + void LoadElements(void); bool IsImplicitVRLittleEndianTransferSyntax(void); bool IsExplicitVRLittleEndianTransferSyntax(void); @@ -122,7 +123,6 @@ protected: int write(ostream&); int anonymize(ostream&); // FIXME : anonymize should be a friend ? public: - void LoadElements(void); bool IsReadable(void); virtual void ParseHeader(bool exception_on_error = false) throw(gdcmFormatError);