Program: gdcm
Module: $RCSfile: gdcmDicomDir.cxx,v $
Language: C++
- Date: $Date: 2005/11/29 17:21:34 $
- Version: $Revision: 1.177 $
+ Date: $Date: 2005/11/30 10:58:27 $
+ Version: $Revision: 1.178 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
/**
* \brief Copies all the attributes from an other DocEntrySet
* @param set entry to copy from
- * @remarks The contained DocEntries a not copied, only referenced
+ * @remarks The contained DocEntries are not copied, only referenced
*/
void DicomDir::Copy(DocEntrySet *set)
{
Program: gdcm
Module: $RCSfile: gdcmGlobal.cxx,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:33 $
- Version: $Revision: 1.29 $
+ Date: $Date: 2005/11/30 10:58:27 $
+ Version: $Revision: 1.30 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
*/
Global::Global()
{
- if (ValRes || TranSyn || Dicts || ddElem)
+ if (ValRes || TranSyn || Dicts || ddElem || GroupName )
{
- gdcmStaticWarningMacro( "VR or TS or Dicts already allocated");
+ gdcmStaticWarningMacro( "VR or TS or Dicts or ... already allocated");
return;
}
Dicts = DictSet::New();
//-----------------------------------------------------------------------------
// Public
-/**
- * \brief returns a pointer to Dictionaries Table
- */
-DictSet *Global::GetDicts()
-{
- return Dicts;
-}
-
-/**
- * \brief returns a pointer to the 'Value Representation Table'
- */
-VR *Global::GetVR()
-{
- return ValRes;
-}
-
-/**
- * \brief returns a pointer to the 'Transfer Syntax Table'
- */
-TS *Global::GetTS()
-{
- return TranSyn;
-}
-
-/**
- * \brief returns a pointer to the Group name correspondance table
- */
-DictGroupName *Global::GetDictGroupName()
-{
- return GroupName;
-}
-
-/**
- * \brief returns a pointer to the DicomDir related elements Table
- */
-DicomDirElement *Global::GetDicomDirElements()
-{
- return ddElem;
-}
//-----------------------------------------------------------------------------
// Protected
Program: gdcm
Module: $RCSfile: gdcmGlobal.h,v $
Language: C++
- Date: $Date: 2005/04/05 10:56:25 $
- Version: $Revision: 1.8 $
+ Date: $Date: 2005/11/30 10:58:28 $
+ Version: $Revision: 1.9 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* \brief This class contains all globals elements that might be
* instanciated only once (singletons).
*/
+class Dict;
class GDCM_EXPORT Global
{
public:
Global();
~Global();
- static DictSet *GetDicts();
- static VR *GetVR();
- static TS *GetTS();
- static DictGroupName *GetDictGroupName();
- static DicomDirElement *GetDicomDirElements();
+ /// \brief returns a pointer to Dictionaries Table
+ static DictSet *GetDicts() { return Dicts;}
+ /// \brief returns a pointer to the 'Value Representation Table'
+ static VR *GetVR(){ return ValRes; }
+ /// \brief returns a pointer to the 'Transfer Syntax Table'
+ static TS *GetTS(){ return TranSyn; }
+ /// \brief returns a pointer to the Group name correspondance table
+ static DictGroupName *GetDictGroupName() { return GroupName; }
+ /// \brief returns a pointer to the DicomDir related elements Table
+ static DicomDirElement *GetDicomDirElements(){ return ddElem; }
private:
/// Pointer to a container, holding _all_ the Dicom Dictionaries.