]> Creatis software - gdcm.git/commitdiff
BUG: Moving gdcmCommon to gdcm namespace broke some examples, fix those
authormalaterre <malaterre>
Tue, 2 Nov 2004 03:42:29 +0000 (03:42 +0000)
committermalaterre <malaterre>
Tue, 2 Nov 2004 03:42:29 +0000 (03:42 +0000)
Example/PrintFile.cxx
Example/PrintHeader.cxx
Testing/TestAllEntryVerify.cxx
Testing/TestTS.cxx

index 524ac27fc3886c579083da512d800bb95f28b86c..9b7e61e0d8d6b207cdff326231fd59e533b57a74 100644 (file)
@@ -53,7 +53,7 @@ int main(int argc, char* argv[])
    std::cout << " NumberOfScalarComponents " << numberOfScalarComponents <<std::endl;
 
   
-  if ( e1->GetEntryByNumber(0x0002,0x0010) == GDCM_NOTLOADED ) {
+  if ( e1->GetEntryByNumber(0x0002,0x0010) == gdcm::GDCM_NOTLOADED ) {
      std::cout << "Transfert Syntax not loaded. " << std::endl
                << "Better you increase MAX_SIZE_LOAD_ELEMENT_VALUE"
                << std::endl;
index 201cb3c90cc39ecfc36c3136431a25bed9055af0..5f09579499f60e1bd50866cfa11f836220074e3c 100644 (file)
@@ -32,7 +32,7 @@ int main(int argc, char* argv[])
       
   std::cout << "\n\n" << std::endl; 
   
-  if ( e1->GetEntryByNumber(0x0002,0x0010) == GDCM_NOTLOADED ) {
+  if ( e1->GetEntryByNumber(0x0002,0x0010) == gdcm::GDCM_NOTLOADED ) {
      std::cout << "Transfert Syntax not loaded. " << std::endl
                << "Better you increase MAX_SIZE_LOAD_ELEMENT_VALUE"
                << std::endl;
index 0ccc070f6353efb33afa8d292c28d1840f98479a..995dcf26ac838a5a76fc2bbca008d716c200476d 100644 (file)
@@ -9,7 +9,7 @@
 #include "gdcmDataImages.h"
 
 typedef std::string EntryValueType;   // same type as ValEntry::value
-typedef std::map< TagKey, EntryValueType > MapEntryValues;
+typedef std::map< gdcm::TagKey, EntryValueType > MapEntryValues;
 typedef MapEntryValues* MapEntryValuesPtr;
 typedef std::string FileNameType;
 typedef std::map< FileNameType, MapEntryValuesPtr > MapFileValuesType;
@@ -533,7 +533,7 @@ void ReferenceFileParser::ParseRegularLine( std::string& line)
 bool ReferenceFileParser::SecondPassReferenceFile()
    throw ( ParserException )
 {
-   TagKey key;
+   gdcm::TagKey key;
    EntryValueType value;
    std::string line;
    bool inBlock = false;
index 4aa6b6eead8ad9333a0298afa857cdafc7107806..cf2ab56066954bc193d8ac6a59443f4afee06edc 100644 (file)
@@ -6,5 +6,5 @@ int TestTS(int , char *[])
    // There should be 150 entries
    ts.Print( std::cout );
 
-   return ts.GetValue( "" ) != GDCM_UNFOUND;
+   return ts.GetValue( "" ) != gdcm::GDCM_UNFOUND;
 }