there is no inheritance from it. And thus, only one hash-table for all objects.
This will gain some of memory
-- BeNours
Program: gdcm
Module: $RCSfile: TestCommand.cxx,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:29 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2005/11/28 16:31:19 $
+ Version: $Revision: 1.2 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
{
int error=0;
- gdcm::CommandManager *mgr = gdcm::CommandManager::New();
- CommandTest *cmd = CommandTest::New();
gdcm::CallbackCommand *cbk = gdcm::CallbackCommand::New();
cbk->SetCallback(CallbackTest);
-
- mgr->SetCommand(2,cmd);
- mgr->SetCommand(1,cbk);
-
+ gdcm::CommandManager::SetCommand(NULL,1,cbk);
cbk->Delete();
+
+ CommandTest *cmd = CommandTest::New();
+ gdcm::CommandManager::SetCommand(NULL,2,cmd);
cmd->Delete();
std::cout << "Test on callback function execution\n";
- mgr->ExecuteCommand(1,"Test on callback function");
+ gdcm::CommandManager::ExecuteCommand(NULL,1,"Test on callback function");
if(!fctExecuted)
std::cout<<"... Failed\n";
error+=!fctExecuted;
std::cout << std::endl;
std::cout << "Test on command class execution\n";
- mgr->ExecuteCommand(2,"Test on command class");
+ gdcm::CommandManager::ExecuteCommand(NULL,2,"Test on command class");
if(!cmd->IsExecuted())
std::cout<<"... Failed\n";
error+=!cmd->IsExecuted();
std::cout << std::endl;
std::cout << "Test on unset command execution\n";
- mgr->ExecuteCommand(3,"Test on callback function");
+ gdcm::CommandManager::ExecuteCommand(NULL,3,"Test on callback function");
std::cout << std::endl;
return error;
Program: gdcm
Module: $RCSfile: TestDict.cxx,v $
Language: C++
- Date: $Date: 2005/10/25 14:52:30 $
- Version: $Revision: 1.10 $
+ Date: $Date: 2005/11/28 16:31:19 $
+ Version: $Revision: 1.11 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
entry=pubDict->GetNextEntry();
}
- // Let's play with DicEntry stuff !
-
+/* // Let's play with DicEntry stuff !
// First, we try to break an Entry.
entry=pubDict->GetFirstEntry();
entry->SetVR("PN");
- // Should warn us !
+ // Should warn us !*/
return(0);
}
Program: gdcm
Module: $RCSfile: TestMakeDicomDir.cxx,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:29 $
- Version: $Revision: 1.11 $
+ Date: $Date: 2005/11/28 16:31:19 $
+ Version: $Revision: 1.12 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#include "gdcmDicomDir.h"
#include "gdcmDicomDirPatient.h"
#include "gdcmDirList.h"
+#include "gdcmCommandManager.h"
#include "gdcmDebug.h"
// ---
gdcm::Command *cmd;
cmd = CommandStart::New();
- dcmdir->SetCommand(gdcm::CMD_STARTPROGRESS,cmd);
+ gdcm::CommandManager::SetCommand(dcmdir,gdcm::CMD_STARTPROGRESS,cmd);
cmd->Delete();
cmd = CommandProgress::New();
- dcmdir->SetCommand(gdcm::CMD_PROGRESS,cmd);
+ gdcm::CommandManager::SetCommand(dcmdir,gdcm::CMD_PROGRESS,cmd);
cmd->Delete();
cmd = CommandEnd::New();
- dcmdir->SetCommand(gdcm::CMD_ENDPROGRESS,cmd);
+ gdcm::CommandManager::SetCommand(dcmdir,gdcm::CMD_ENDPROGRESS,cmd);
cmd->Delete();
// dcmdir->SetLoadMode(gdcm::LD_NOSEQ | gdcm::LD_NOSHADOW);
Program: gdcm
Module: $RCSfile: gdcmCommand.cxx,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:35 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2005/11/28 16:31:22 $
+ Version: $Revision: 1.2 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
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;
Program: gdcm
Module: $RCSfile: gdcmCommand.h,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:35 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2005/11/28 16:31:22 $
+ Version: $Revision: 1.2 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
void SetType(unsigned int type);
unsigned int GetType() const;
- void SetObject(CommandManager *object);
- CommandManager *GetObject() const;
- void SetConstObject(const CommandManager *object);
- const CommandManager *GetConstObject() const;
+ void SetObject(Base *object);
+ Base *GetObject() const;
+ void SetConstObject(const Base *object);
+ const Base *GetConstObject() const;
void SetText(const std::string &text);
const std::string &GetText() const;
private:
std::string Text;
- CommandManager *Object;
- const CommandManager *ConstObject;
+ Base *Object;
+ const Base *ConstObject;
unsigned int Cmd;
};
} // end namespace gdcm
Program: gdcm
Module: $RCSfile: gdcmCommandManager.cxx,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:35 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2005/11/28 16:31:22 $
+ Version: $Revision: 1.2 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
namespace gdcm
{
+//-----------------------------------------------------------------------------
+CommandManager CommandManager::Instance;
+
//-----------------------------------------------------------------------------
// Constructor / Destructor
/**
*/
CommandManager::~CommandManager ()
{
+ if( this == GetInstance() )
+ InClearCommand();
}
//-----------------------------------------------------------------------------
// Public
-void CommandManager::SetCommand(unsigned int type,Command *command)
+void CommandManager::SetCommand(const Base *object,unsigned int type,Command *command)
+{
+ Instance.InSetCommand(object,type,command);
+}
+
+Command *CommandManager::GetCommand(const Base *object,unsigned int type)
+{
+ return(Instance.InGetCommand(object,type));
+}
+
+bool CommandManager::ExecuteCommand(Base *object,unsigned int type,std::string text)
{
- Command *cmd=CommandList[type];
- if(cmd!=command)
+ return(Instance.InExecuteCommand(object,type,text));
+}
+
+bool CommandManager::ExecuteCommandConst(const Base *object,unsigned int type,std::string text)
+{
+ return(Instance.InExecuteCommandConst(object,type,text));
+}
+
+const CommandManager *CommandManager::GetInstance()
+{
+ return &Instance;
+}
+
+//-----------------------------------------------------------------------------
+// Protected
+void CommandManager::InClearCommand(void)
+{
+ CommandHT::iterator it;
+ for(it=CommandList.begin();it!=CommandList.end();++it)
+ {
+ if( it->second )
+ it->second->Delete();
+ }
+}
+
+void CommandManager::InSetCommand(const Base *object,unsigned int type,Command *command)
+{
+ CommandKey key = CommandKey(object,type);
+ Command *cmd = CommandList[key];
+ if( cmd != command )
{
- if(cmd)
+ if( cmd )
cmd->Unregister();
- if(command)
+ if( command )
{
- CommandList[type]=command;
+ CommandList[key]=command;
command->Register();
}
else
- CommandList.erase(type);
+ CommandList.erase(key);
}
}
-Command *CommandManager::GetCommand(unsigned int type) const
+Command *CommandManager::InGetCommand(const Base *object,unsigned int type)
{
+ CommandKey key = CommandKey(object,type);
try
{
- return CommandList[type];
+ return CommandList[key];
}
catch(...)
{
}
}
-bool CommandManager::ExecuteCommand(unsigned int type,std::string text)
+bool CommandManager::InExecuteCommand(Base *object,unsigned int type,std::string text)
{
- Command *cmd = GetCommand(type);
- if(cmd)
+ Command *cmd = GetCommand(object,type);
+ if( cmd )
{
cmd->SetText(text);
- cmd->SetObject(this);
+ cmd->SetObject(object);
cmd->SetType(type);
cmd->Execute();
return true;
return false;
}
-bool CommandManager::ConstExecuteCommand(unsigned int type,std::string text) const
+bool CommandManager::InExecuteCommandConst(const Base *object,unsigned int type,std::string text)
{
- Command *cmd = GetCommand(type);
- if(cmd)
+ Command *cmd = GetCommand(object,type);
+ if( cmd )
{
cmd->SetText(text);
- cmd->SetConstObject(this);
+ cmd->SetConstObject(object);
cmd->SetType(type);
cmd->Execute();
return true;
return false;
}
-//-----------------------------------------------------------------------------
-// Protected
-
//-----------------------------------------------------------------------------
// Private
CommandHT::iterator it;
for(it=CommandList.begin();it!=CommandList.end();++it)
{
- os<<indent<<" "<<Command::GetCommandAsString(it->first)
- <<" : "<<typeid(it->second).name()
- <<" ("<<it->second<<")"<<std::endl;
+ os<<indent<<" "<<typeid(it->first.first).name()<<" ("<<it->first.first<<") - "
+ <<Command::GetCommandAsString(it->first.second)
+ <<" : "<<typeid(it->second).name()<<" ("<<it->second<<")"
+ <<std::endl;
}
}
Program: gdcm
Module: $RCSfile: gdcmCommandManager.h,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:35 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2005/11/28 16:31:22 $
+ Version: $Revision: 1.2 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
{
//-----------------------------------------------------------------------------
class Command;
-typedef std::map<unsigned int,Command *> CommandHT;
+typedef std::pair<const Base *,unsigned int> CommandKey;
+typedef std::map<CommandKey,Command *> CommandHT;
//-----------------------------------------------------------------------------
/**
*
* \remarks The execution parameter depends on the
*/
-class GDCM_EXPORT CommandManager : public RefCounter
+class GDCM_EXPORT CommandManager : public Base
{
gdcmTypeMacro(CommandManager);
public:
- /// \brief Contructs an empty Dict with a RefCounter
- static CommandManager *New() {return new CommandManager();}
void Print(std::ostream &os = std::cout, std::string const &indent = "" );
- void SetCommand(unsigned int type,Command *command);
- Command *GetCommand(unsigned int type) const;
+ static void SetCommand(const Base *object,unsigned int type,Command *command);
+ static Command *GetCommand(const Base *object,unsigned int type);
- bool ExecuteCommand(unsigned int type,std::string text = "");
- bool ConstExecuteCommand(unsigned int type,std::string text = "") const;
+ 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();
protected:
CommandManager();
~CommandManager();
+ void InClearCommand(void);
+ 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 = "");
+
private:
- mutable CommandHT CommandList;
+ static CommandManager Instance;
+ CommandHT CommandList;
};
} // end namespace gdcm
Program: gdcm
Module: $RCSfile: gdcmDebug.cxx,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:32 $
- Version: $Revision: 1.27 $
+ Date: $Date: 2005/11/28 16:31:22 $
+ Version: $Revision: 1.28 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
return StandardStream;
}
-void Debug::SendToOutput(unsigned int type,std::string const &msg,const CommandManager *mgr)
+void Debug::SendToOutput(unsigned int type,std::string const &msg,const Base *object)
{
bool executed=false;
- if(mgr)
- executed=mgr->ConstExecuteCommand(type,msg);
+ executed=CommandManager::ExecuteCommandConst(object,type,msg);
if(!executed)
GetOutput() << Command::GetCommandAsString(type) << ": " << msg;
Program: gdcm
Module: $RCSfile: gdcmDebug.h,v $
Language: C++
- Date: $Date: 2005/11/28 15:30:03 $
- Version: $Revision: 1.49 $
+ Date: $Date: 2005/11/28 16:31:23 $
+ Version: $Revision: 1.50 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
static std::ostream &GetOutput ();
- static void SendToOutput(unsigned int type,std::string const &msg,const CommandManager *mgr = NULL);
+ static void SendToOutput(unsigned int type,std::string const &msg,const Base *object = NULL);
private:
static bool DebugFlag;
Program: gdcm
Module: $RCSfile: gdcmDicomDir.cxx,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:32 $
- Version: $Revision: 1.174 $
+ Date: $Date: 2005/11/28 16:31:23 $
+ Version: $Revision: 1.175 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#include "gdcmSeqEntry.h"
#include "gdcmSQItem.h"
#include "gdcmDataEntry.h"
+#include "gdcmCommandManager.h"
#include <fstream>
#include <string>
{
Progress = 0.0f;
Abort = false;
- ExecuteCommand(CMD_STARTPROGRESS);
+ CommandManager::ExecuteCommand(this,CMD_STARTPROGRESS);
}
/**
*/
void DicomDir::CallProgressMethod()
{
- ExecuteCommand(CMD_PROGRESS);
+ CommandManager::ExecuteCommand(this,CMD_PROGRESS);
}
/**
void DicomDir::CallEndMethod()
{
Progress = 1.0f;
- ExecuteCommand(CMD_ENDPROGRESS);
+ CommandManager::ExecuteCommand(this,CMD_ENDPROGRESS);
}
//-----------------------------------------------------------------------------
Program: gdcm
Module: $RCSfile: gdcmDicomDirElement.h,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:32 $
- Version: $Revision: 1.36 $
+ Date: $Date: 2005/11/28 16:31:23 $
+ Version: $Revision: 1.37 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#ifndef GDCMDICOMDIRELEMENT_H
#define GDCMDICOMDIRELEMENT_H
-#include "gdcmCommandManager.h"
+#include "gdcmRefCounter.h"
#include <list>
* \brief Represents elements contained in a DicomDir class
* for the chained lists from the file 'Dicts/DicomDir.dic'
*/
-class GDCM_EXPORT DicomDirElement : public CommandManager
+class GDCM_EXPORT DicomDirElement : public RefCounter
{
gdcmTypeMacro(DicomDirElement);
Program: gdcm
Module: $RCSfile: gdcmDict.h,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:32 $
- Version: $Revision: 1.47 $
+ Date: $Date: 2005/11/28 16:31:23 $
+ Version: $Revision: 1.48 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#ifndef GDCMDICT_H
#define GDCMDICT_H
-#include "gdcmCommandManager.h"
+#include "gdcmRefCounter.h"
#include "gdcmDictEntry.h"
#include <iostream>
* combined with all software versions...
* \see DictSet
*/
-class GDCM_EXPORT Dict : public CommandManager
+class GDCM_EXPORT Dict : public RefCounter
{
gdcmTypeMacro(Dict);
Program: gdcm
Module: $RCSfile: gdcmDictGroupName.h,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:32 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2005/11/28 16:31:23 $
+ Version: $Revision: 1.8 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#ifndef GDCMDICTGROUPNAME_H
#define GDCMDICTGROUPNAME_H
-#include "gdcmCommandManager.h"
+#include "gdcmRefCounter.h"
#include <map>
#include <string>
* (formerly NIH defined ACR-NEMA group name)
* \note This is a singleton.
*/
-class GDCM_EXPORT DictGroupName : public CommandManager
+class GDCM_EXPORT DictGroupName : public RefCounter
{
gdcmTypeMacro(DictGroupName);
Program: gdcm
Module: $RCSfile: gdcmDictSet.h,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:33 $
- Version: $Revision: 1.51 $
+ Date: $Date: 2005/11/28 16:31:23 $
+ Version: $Revision: 1.52 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#ifndef GDCMDICTSET_H
#define GDCMDICTSET_H
-#include "gdcmCommandManager.h"
+#include "gdcmRefCounter.h"
#include "gdcmDict.h"
#include <map>
* - having many in memory representations of the same dictionary
* (saving memory).
*/
-class GDCM_EXPORT DictSet : public CommandManager
+class GDCM_EXPORT DictSet : public RefCounter
{
gdcmTypeMacro(DictSet);
Program: gdcm
Module: $RCSfile: gdcmDirList.h,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:33 $
- Version: $Revision: 1.28 $
+ Date: $Date: 2005/11/28 16:31:23 $
+ Version: $Revision: 1.29 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#ifndef GDCMDIRLIST_H
#define GDCMDIRLIST_H
-#include "gdcmCommon.h"
-#include "gdcmCommandManager.h"
+#include "gdcmBase.h"
#include <string>
#include <vector>
* \brief List containing the file headers of all the 'gdcm readable' files
* found by exploring (possibely recursively) a root directory.
*/
-class GDCM_EXPORT DirList : public CommandManager
+class GDCM_EXPORT DirList : public Base
{
public :
DirList(std::string const &dirName, bool recursive=false);
Program: gdcm
Module: $RCSfile: gdcmDocEntry.h,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:33 $
- Version: $Revision: 1.57 $
+ Date: $Date: 2005/11/28 16:31:23 $
+ Version: $Revision: 1.58 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#ifndef GDCMDOCENTRY_H
#define GDCMDOCENTRY_H
-#include "gdcmCommandManager.h"
+#include "gdcmRefCounter.h"
#include "gdcmDictEntry.h"
#include <iostream>
* \brief The dicom header of a Dicom file contains a set of such entries
* (when successfuly parsed against a given Dicom dictionary)
*/
-class GDCM_EXPORT DocEntry : public CommandManager
+class GDCM_EXPORT DocEntry : public RefCounter
{
gdcmTypeMacro(DocEntry);
Program: gdcm
Module: $RCSfile: gdcmDocEntrySet.h,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:33 $
- Version: $Revision: 1.64 $
+ Date: $Date: 2005/11/28 16:31:23 $
+ Version: $Revision: 1.65 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#ifndef GDCMDOCENTRYSET_H
#define GDCMDOCENTRYSET_H
-#include "gdcmCommandManager.h"
+#include "gdcmRefCounter.h"
#include "gdcmVRKey.h"
#include "gdcmTagKey.h"
* members to this class since this class is designed as an adapter
* in the form of an abstract base class.
*/
-class GDCM_EXPORT DocEntrySet : public CommandManager
+class GDCM_EXPORT DocEntrySet : public RefCounter
{
gdcmTypeMacro(DocEntrySet);
Program: gdcm
Module: $RCSfile: gdcmFileHelper.h,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:33 $
- Version: $Revision: 1.34 $
+ Date: $Date: 2005/11/28 16:31:23 $
+ Version: $Revision: 1.35 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#define GDCMFILEHELPER_H
#include "gdcmDebug.h"
-#include "gdcmCommandManager.h"
+#include "gdcmRefCounter.h"
namespace gdcm
* for accessing the image/volume content. One can also use it to
* write Dicom/ACR-NEMA/RAW files.
*/
-class GDCM_EXPORT FileHelper : public CommandManager
+class GDCM_EXPORT FileHelper : public RefCounter
{
gdcmTypeMacro(FileHelper);
Program: gdcm
Module: $RCSfile: gdcmOrientation.h,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:34 $
- Version: $Revision: 1.16 $
+ Date: $Date: 2005/11/28 16:31:23 $
+ Version: $Revision: 1.17 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#ifndef GDCMORIENTATION_H
#define GDCMORIENTATION_H
-#include "gdcmCommandManager.h"
+#include "gdcmRefCounter.h"
+
#include <map>
namespace gdcm
* The values are given within the 'Patient referential', *not* within the 'Organ referential' ...
*/
-class GDCM_EXPORT Orientation : public CommandManager
+class GDCM_EXPORT Orientation : public RefCounter
{
gdcmTypeMacro(Orientation);
public:
Program: gdcm
Module: $RCSfile: gdcmSerieHelper.h,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:34 $
- Version: $Revision: 1.31 $
+ Date: $Date: 2005/11/28 16:31:23 $
+ Version: $Revision: 1.32 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#ifndef GDCMSERIEHELPER_H
#define GDCMSERIEHELPER_H
-#include "gdcmCommon.h"
+#include "gdcmRefCounter.h"
#include "gdcmTagKey.h"
#include "gdcmDebug.h" // for LEGACY
-#include "gdcmCommandManager.h"
#include <vector>
#include <iostream>
* into several XCoherent Filesets
* XCoherent stands for 'Extra Coherent' (same orientation, or same position)
*/
-class GDCM_EXPORT SerieHelper : public CommandManager
+class GDCM_EXPORT SerieHelper : public RefCounter
{
gdcmTypeMacro(SerieHelper);
Program: gdcm
Module: $RCSfile: gdcmTS.h,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:34 $
- Version: $Revision: 1.25 $
+ Date: $Date: 2005/11/28 16:31:23 $
+ Version: $Revision: 1.26 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#ifndef GDCMTS_H
#define GDCMTS_H
-#include "gdcmCommandManager.h"
+#include "gdcmRefCounter.h"
#include <map>
#include <string>
* \brief Container for dicom 'Transfer Syntax' Hash Table
* \note This is a singleton
*/
-class GDCM_EXPORT TS : public CommandManager
+class GDCM_EXPORT TS : public RefCounter
{
gdcmTypeMacro(TS);
Program: gdcm
Module: $RCSfile: gdcmVR.h,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:34 $
- Version: $Revision: 1.27 $
+ Date: $Date: 2005/11/28 16:31:24 $
+ Version: $Revision: 1.28 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#ifndef GDCMVR_H
#define GDCMVR_H
-#include "gdcmCommandManager.h"
+#include "gdcmRefCounter.h"
#include "gdcmVRKey.h"
#include <map>
* \brief Container for dicom Value Representation Hash Table
* \note This is a singleton
*/
-class GDCM_EXPORT VR : public CommandManager
+class GDCM_EXPORT VR : public RefCounter
{
gdcmTypeMacro(VR);
Program: gdcm
Module: $RCSfile: gdcmValidator.h,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:34 $
- Version: $Revision: 1.4 $
+ Date: $Date: 2005/11/28 16:31:24 $
+ 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
#ifndef GDCMVALIDATOR_H
#define GDCMVALIDATOR_H
-#include "gdcmCommandManager.h"
+#include "gdcmRefCounter.h"
namespace gdcm
{
* \brief Class to perform some verifications on a gdcm::Document
*/
class ElementSet;
-class GDCM_EXPORT Validator : public CommandManager
+class GDCM_EXPORT Validator : public RefCounter
{
gdcmTypeMacro(Validator);