Go to the source code of this file.
◆ main()
| int main |
( |
int | , |
|
|
char ** | ) |
Definition at line 28 of file gtestConfigPool.cxx.
29{
30
31 LOG(
"test",
pINFO) <<
"Get config pool instance";
33
34
35 LOG(
"test",
pINFO) <<
"Printing the config pool\n" << *pool;
36
37
39
40
41 LOG(
"test",
pINFO) <<
"Instantiate a concrete algorithm";
47
48 LOG(
"test",
pINFO) <<
"Instantiate another concrete algorithm";
50 algf->
GetAlgorithm(
"genie::DipoleELFormFactorsModel",
"Default");
54
55
56
57 LOG(
"test",
pINFO) <<
"Find the configuration for both algorithms";
58
61
62 if(config1)
LOG(
"test",
pINFO) <<
"1st algorithm config: \n" << *config1;
63 if(config2)
LOG(
"test",
pINFO) <<
"2nd algorithm config: \n" << *config2;
64
65 return 0;
66}
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
A singleton class holding all configuration registries built while parsing all loaded XML configurati...
Registry * FindRegistry(string key) const
static AlgConfigPool * Instance()
The GENIE Algorithm Factory.
const Algorithm * GetAlgorithm(const AlgId &algid)
static AlgFactory * Instance()
Algorithm abstract base class.
A registry. Provides the container for algorithm configuration parameters.
References genie::AlgConfigPool::FindRegistry(), genie::AlgFactory::GetAlgorithm(), genie::AlgConfigPool::Instance(), genie::AlgFactory::Instance(), LOG, and pINFO.