X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmCommandManager.h;h=ff21e0c14769b41c909719765488f71ca6cab075;hb=d9ac99c203134d9aa1ced194746748bbb1e005ac;hp=9d964109238494dd23244c2c6059bbf54c85ac2e;hpb=3a0c4256baa5052f854ac46751b93a3e0d0e5f7a;p=gdcm.git diff --git a/src/gdcmCommandManager.h b/src/gdcmCommandManager.h index 9d964109..ff21e0c1 100644 --- a/src/gdcmCommandManager.h +++ b/src/gdcmCommandManager.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmCommandManager.h,v $ Language: C++ - Date: $Date: 2006/01/18 15:25:07 $ - Version: $Revision: 1.3 $ + Date: $Date: 2007/03/23 15:30:15 $ + Version: $Revision: 1.4 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -28,7 +28,7 @@ namespace gdcm { //----------------------------------------------------------------------------- class Command; -typedef std::pair CommandKey; +typedef std::pair CommandKey; typedef std::map CommandHT; //----------------------------------------------------------------------------- @@ -44,11 +44,11 @@ class GDCM_EXPORT CommandManager : public Base public: void Print(std::ostream &os = std::cout, std::string const &indent = "" ); - static void SetCommand(const Base *object,unsigned int type,Command *command); - static Command *GetCommand(const Base *object,unsigned int type); + static void SetCommand(const Base *object, unsigned int type, Command *command); + static Command *GetCommand(const Base *object, unsigned int type); - static bool ExecuteCommand(Base *object,unsigned int type,std::string text = ""); - static bool ExecuteCommandConst(const Base *object,unsigned int type,std::string text = ""); + static bool ExecuteCommand(Base *object, unsigned int type, std::string text = ""); + static bool ExecuteCommandConst(const Base *object, unsigned int type, std::string text = ""); static const CommandManager *GetInstance(); @@ -58,11 +58,11 @@ protected: CommandManager(); void InClearCommand(void); - void InSetCommand(const Base *object,unsigned int type,Command *command); - Command *InGetCommand(const Base *object,unsigned int type); + void InSetCommand(const Base *object, unsigned int type, Command *command); + Command *InGetCommand(const Base *object, unsigned int type); - bool InExecuteCommand(Base *object,unsigned int type,std::string text = ""); - bool InExecuteCommandConst(const Base *object,unsigned int type,std::string text = ""); + bool InExecuteCommand(Base *object, unsigned int type, std::string text = ""); + bool InExecuteCommandConst(const Base *object, unsigned int type, std::string text = ""); private: static CommandManager Instance;