The class create a number analyzer of the appropriate type. The class is purely static, no object of the class should be instantiated: The default and copy constructor are declared private and not implemented.
Definition at line 60 of file numberanalyzerfactory.h.
OSB_LIB::NumberAnalyzerFactory::NumberAnalyzerFactory | ( | ) | [private] |
Prevent constrction: not implemented.
OSB_LIB::NumberAnalyzerFactory::NumberAnalyzerFactory | ( | const NumberAnalyzerFactory & | ) | [private] |
Prevent construction: not implemented.
static NumberAnalyzer::AutoPtr OSB_LIB::NumberAnalyzerFactory::create | ( | const NumberAnalyzer::NumberAnalyzerType & | type, | |
const NumberAnalyzer::Oid & | oid = NumberAnalyzer::Oid() | |||
) | [static] |
Create a number analyzer of a specified type.
This function can be used to create a new number analyzer or to create an existing number analyzer.
Create new number analyzer:
NumberAnalyzer::AutoPtr ptr = NumberAnalyzerFactory.create(na01); ptr->setTgId(tgId); ... ptr->insert(session);
Create an existing number analyzer:
NumberAnalyzer::AutoPtr ptr = NumberAnalyzerFactory.create(na01, naId); ptr->read(session);
type | Identify the type of number analyzer to create. | |
oid | Object id of the number analyzer to create. |