]> Creatis software - gdcm.git/blobdiff - src/gdcmCommand.cxx
Fix mistypings
[gdcm.git] / src / gdcmCommand.cxx
index 3a3fa452a1117dd441e7d32af176238955b3b27c..1d474566edb6ecb8b32edbb312463e4012b76b8b 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmCommand.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/28 15:20:35 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2007/10/30 13:34:42 $
+  Version:   $Revision: 1.5 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -18,7 +18,7 @@
 // ---------------------------------------------------------------
 #include "gdcmCommand.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
@@ -26,11 +26,12 @@ namespace gdcm
  * \brief Constructor used when we want to generate dicom files from scratch
  */
 Command::Command()
+  :  Text(""), Object(NULL), ConstObject(NULL), Cmd(CMD_UNKNOWN)
 {
-   Cmd = CMD_UNKNOWN;
-   Object = NULL;
-   ConstObject = NULL;
-   Text = "";
+//   Cmd = CMD_UNKNOWN;
+//   Object = NULL;
+//   ConstObject = NULL;
+//   Text = "";
 }
 
 
@@ -53,22 +54,22 @@ unsigned int Command::GetType() const
    return Cmd;
 }
 
-void Command::SetObject(CommandManager *object)
+void Command::SetObject(Base *object)
 {
    Object = object;
 }
 
-CommandManager *Command::GetObject() const
+Base *Command::GetObject() const
 {
    return Object;
 }
 
-void Command::SetConstObject(const CommandManager *object)
+void Command::SetConstObject(const Base *object)
 {
    ConstObject = object;
 }
 
-const CommandManager *Command::GetConstObject() const
+const Base *Command::GetConstObject() const
 {
    if(ConstObject)
       return ConstObject;