1 /*=========================================================================
4 Module: $RCSfile: gdcmCommand.cxx,v $
6 Date: $Date: 2005/11/28 16:31:22 $
7 Version: $Revision: 1.2 $
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"
23 //-----------------------------------------------------------------------------
24 // Constructor / Destructor
26 * \brief Constructor used when we want to generate dicom files from scratch
38 * \brief Canonical destructor.
44 //-----------------------------------------------------------------------------
46 void Command::SetType(unsigned int type)
51 unsigned int Command::GetType() const
56 void Command::SetObject(Base *object)
61 Base *Command::GetObject() const
66 void Command::SetConstObject(const Base *object)
71 const Base *Command::GetConstObject() const
79 void Command::SetText(const std::string &text)
84 const std::string &Command::GetText(void) const
89 void Command::Execute()
93 const char *Command::GetCommandAsString(unsigned int command)
107 case CMD_STARTPROGRESS:
108 return "StartProgress";
109 case CMD_ENDPROGRESS:
110 return "EndProgress";
114 return "Undefined !!!";
118 //-----------------------------------------------------------------------------
121 //-----------------------------------------------------------------------------
124 //-----------------------------------------------------------------------------
127 //-----------------------------------------------------------------------------
128 } // end namespace gdcm