1 /*=========================================================================
4 Module: $RCSfile: gdcmCommand.cxx,v $
6 Date: $Date: 2007/10/30 13:34:42 $
7 Version: $Revision: 1.5 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
18 // ---------------------------------------------------------------
19 #include "gdcmCommand.h"
21 namespace GDCM_NAME_SPACE
23 //-----------------------------------------------------------------------------
24 // Constructor / Destructor
26 * \brief Constructor used when we want to generate dicom files from scratch
29 : Text(""), Object(NULL), ConstObject(NULL), Cmd(CMD_UNKNOWN)
33 // ConstObject = NULL;
39 * \brief Canonical destructor.
45 //-----------------------------------------------------------------------------
47 void Command::SetType(unsigned int type)
52 unsigned int Command::GetType() const
57 void Command::SetObject(Base *object)
62 Base *Command::GetObject() const
67 void Command::SetConstObject(const Base *object)
72 const Base *Command::GetConstObject() const
80 void Command::SetText(const std::string &text)
85 const std::string &Command::GetText(void) const
90 void Command::Execute()
94 const char *Command::GetCommandAsString(unsigned int command)
108 case CMD_STARTPROGRESS:
109 return "StartProgress";
110 case CMD_ENDPROGRESS:
111 return "EndProgress";
115 return "Undefined !!!";
119 //-----------------------------------------------------------------------------
122 //-----------------------------------------------------------------------------
125 //-----------------------------------------------------------------------------
128 //-----------------------------------------------------------------------------
129 } // end namespace gdcm