GDCM  2.2.6
Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
gdcm::Global Class Reference

Global. More...

#include <gdcmGlobal.h>

Public Member Functions

 Global ()
 
 ~Global ()
 
bool Append (const char *path)
 
Defs const & GetDefs () const
 
Dicts const & GetDicts () const
 
DictsGetDicts ()
 
bool LoadResourcesFiles ()
 
bool Prepend (const char *path)
 

Static Public Member Functions

static GlobalGetInstance ()
 return the singleton instance More...
 

Protected Member Functions

const char * Locate (const char *resfile) const
 Locate a ressource file. More...
 

Friends

std::ostream & operator<< (std::ostream &_os, const Global &g)
 

Detailed Description

Global.

Note
Global should be included in any translation unit that will use Dict or that implements the singleton pattern. It makes sure that the Dict singleton is created before and destroyed after all other singletons in GDCM.
Examples:
BasicAnonymizer.cs, ClinicalTrialIdentificationWorkflow.cs, GenAllVR.cxx, GenerateStandardSOPClasses.cxx, GenFakeIdentifyFile.cxx, PublicDict.cxx, ReadAndPrintAttributes.cxx, and TraverseModules.cxx.

Constructor & Destructor Documentation

gdcm::Global::Global ( )
gdcm::Global::~Global ( )

Member Function Documentation

bool gdcm::Global::Append ( const char *  path)

Append path at the end of the path list

Warning
not thread safe !
Defs const& gdcm::Global::GetDefs ( ) const

retrieve the default/internal (Part 3) You need to explicitely call LoadResourcesFiles before

Examples:
GenerateStandardSOPClasses.cxx.
Dicts const& gdcm::Global::GetDicts ( ) const

retrieve the default/internal dicts (Part 6) This dict is filled up at load time

Examples:
GenAllVR.cxx, GenFakeIdentifyFile.cxx, MrProtocol.cxx, PublicDict.cxx, and ReadAndPrintAttributes.cxx.
Dicts& gdcm::Global::GetDicts ( )
static Global& gdcm::Global::GetInstance ( )
static
bool gdcm::Global::LoadResourcesFiles ( )

Load all internal XML files, ressource path need to have been set before calling this member function (see Append/Prepend members func)

Warning
not thread safe !
Examples:
GenerateStandardSOPClasses.cxx.
const char* gdcm::Global::Locate ( const char *  resfile) const
protected

Locate a ressource file.

bool gdcm::Global::Prepend ( const char *  path)

Prepend path at the begining of the path list

Warning
not thread safe !

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  _os,
const Global g 
)
friend

The documentation for this class was generated from the following file:

Generated on Sat Dec 21 2013 05:56:21 for GDCM by doxygen 1.8.5
SourceForge.net Logo