IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Public Member Functions | Static Public Member Functions | Protected Types | Protected Attributes | List of all members
ipsdk::shape::analysis::MeasureInfoFactory Class Reference

Factory singleton allowing dynamic creation of registred measure information class. More...

#include <MeasureInfoFactory.h>

Inheritance diagram for ipsdk::shape::analysis::MeasureInfoFactory:

Public Member Functions

bool isRegistredMsrInfo (const std::string &measureDefaultName) const
 test if a given measure information is already registred
 
void registerMsrInfo (const std::string &measureDefaultName, MsrInfoCreator msrInfoCreator)
 register new measure information into factory More...
 
void unRegisterMsrInfo (const std::string &measureDefaultName)
 un register an existing measure information from factory More...
 
void getRegistredMsrColl (StringVector &registredMsrColl) const
 retrieve collection of registred measure informations (measure default names)
 
BoolResult createMsrInfo (const std::string &measureDefaultName, const std::string &measureName, const bool b2dMsrMode, const GeometricCalibrationConstPtr &pGlobalGeometricCalibration, const MeasureConfigConstPtr &pMeasureConfig, const DataItemConstPtr &pMeasureParams, MeasureInfoPtr &pMeasureInfo) const
 create new instance of a registered measure information More...
 

Static Public Member Functions

static MeasureInfoFactorygetInstance ()
 retrieve unique instance of factory
 

Protected Types

typedef std::map< std::string, MsrInfoCreatorFactoryMap
 typedef for string associated to measure information object creation function
 

Protected Member Functions

Constructors and destructors
 MeasureInfoFactory ()
 
 ~MeasureInfoFactory ()
 

Protected Attributes

FactoryMap _factoryMap
 map storing string to creation function association
 

Detailed Description

Factory singleton allowing dynamic creation of registred measure information class.

Author
E. Noirfalise
Date
2015/06/24

Member Function Documentation

◆ registerMsrInfo()

void ipsdk::shape::analysis::MeasureInfoFactory::registerMsrInfo ( const std::string &  measureDefaultName,
MsrInfoCreator  msrInfoCreator 
)

register new measure information into factory

Exceptions
ipsdk::shape::analysis::IPSDKBaseShapeAnalysisExceptionif isRegistredMsrInfo(measureDefaultName) == true
ipsdk::shape::analysis::IPSDKBaseShapeAnalysisExceptionif isReservedName(measureDefaultName) == true

◆ unRegisterMsrInfo()

void ipsdk::shape::analysis::MeasureInfoFactory::unRegisterMsrInfo ( const std::string &  measureDefaultName)

un register an existing measure information from factory

Exceptions
ipsdk::shape::analysis::IPSDKBaseShapeAnalysisExceptionif isRegistredMsrInfo(measureDefaultName) == false

◆ createMsrInfo()

BoolResult ipsdk::shape::analysis::MeasureInfoFactory::createMsrInfo ( const std::string &  measureDefaultName,
const std::string &  measureName,
const bool  b2dMsrMode,
const GeometricCalibrationConstPtr pGlobalGeometricCalibration,
const MeasureConfigConstPtr pMeasureConfig,
const DataItemConstPtr pMeasureParams,
MeasureInfoPtr pMeasureInfo 
) const

create new instance of a registered measure information

Exceptions
ipsdk::shape::analysis::IPSDKBaseShapeAnalysisExceptionif isRegistredMsrInfo(measureDefaultName) == false
Returns
false if b2dMsrMode, pMeasureConfig or pMeasureParams are not valid for created measure information

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