1 /*=========================================================================
4 Module: $RCSfile: gdcmCommand.h,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 =========================================================================*/
22 #include "gdcmRefCounter.h"
26 //-----------------------------------------------------------------------------
29 //-----------------------------------------------------------------------------
42 //-----------------------------------------------------------------------------
44 * \brief Command base class to react on a gdcm event
46 * \remarks The execution parameter depends on the
48 class GDCM_EXPORT Command : public RefCounter
50 gdcmTypeMacro(Command);
51 gdcmNewMacro(Command);
55 void SetType(unsigned int type);
56 unsigned int GetType() const;
58 void SetObject(Base *object);
59 Base *GetObject() const;
60 void SetConstObject(const Base *object);
61 const Base *GetConstObject() const;
63 void SetText(const std::string &text);
64 const std::string &GetText() const;
66 virtual void Execute();
68 static const char *GetCommandAsString(unsigned int command);
77 const Base *ConstObject;
80 } // end namespace gdcm
82 //-----------------------------------------------------------------------------