DCMTK Version 3.6.9
OFFIS DICOM Toolkit
Loading...
Searching...
No Matches
FGFactory Class Reference

Singleton class that is used to create functional groups by knowing their type or other unique features, i.e. offering factory functionality. More...

Public Member Functions

FGBasecreate (const DcmFGTypes::E_FGType fgtype)
 Create new functional group based on given type.
 
FGBasecreate (const DcmTagKey &fgSequenceKey)
 Create new functional group based its unique sequence tag key.
 

Static Public Member Functions

static FGFactoryinstance ()
 Return the single instance of the factory.
 

Private Member Functions

 FGFactory ()
 Private undefined constructor (singleton implementation)
 
 FGFactory (const FGFactory &)
 Private undefined copy constructor (singleton implementation)
 
FGFactoryoperator= (const FGFactory &rhs)
 Private undefined assignment operator (singleton implementation)
 
 ~FGFactory ()
 Private undefined destructor (singleton implementation)
 

Static Private Attributes

static FGFactorym_Instance
 The instance of FGFactory handled by this singleton class.
 

Detailed Description

Singleton class that is used to create functional groups by knowing their type or other unique features, i.e. offering factory functionality.

Member Function Documentation

◆ create() [1/2]

FGBase * FGFactory::create ( const DcmFGTypes::E_FGType fgtype)

Create new functional group based on given type.

Parameters
fgtypeThe type of functional group to create
Returns
The functional group or NULL if error occurs

◆ create() [2/2]

FGBase * FGFactory::create ( const DcmTagKey & fgSequenceKey)

Create new functional group based its unique sequence tag key.

Parameters
fgSequenceKeyTag key of the functional groups sequence
Returns
The functional group or NULL if error occurs

◆ instance()

static FGFactory & FGFactory::instance ( )
static

Return the single instance of the factory.

Returns
The instance of FGFactory

References FGFactory().

◆ operator=()

FGFactory & FGFactory::operator= ( const FGFactory & rhs)
private

Private undefined assignment operator (singleton implementation)

Parameters
rhsRight hand side of assignment
Returns
Reference to this class

References FGFactory().


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


Generated on Sat May 3 2025 for DCMTK Version 3.6.9 by Doxygen 1.13.2