10 if(fieldsFactoryMap->find(fieldsMethod) == fieldsFactoryMap->end())
12 cout << endl << endl <<
" >>> WARNING: " << fieldsMethod <<
" NOT FOUND IN Field Factory Map." << endl;
16 return (*fieldsFactoryMap)[fieldsMethod]();
21 map<string, fieldFactoryInMap> fieldFactoryMap;
26 return fieldFactoryMap;
38 map<string, string> filesMap;
47 map<string, gfield> gfields;
49 for(map<string, string>::iterator it = filesMap.begin(); it != filesMap.end(); it++)
54 if(thisFactory != NULL)
64 gfields[gf.
name] = gf;
65 if(verbosity > 0) cout << gfields[gf.
name] << endl;
map< string, fieldFactoryInMap > registerFieldFactories()
map< string, gfield > loadAllFields(map< string, fieldFactoryInMap > fieldFactoryMap, goptions opts)
string symmetry
Field symmetry.
fieldFactory * getFieldFactory(map< string, fieldFactoryInMap > *fieldsFactoryMap, string fieldsMethod)
string name
Field name - used as key in the map<string, gfield>
virtual bool isEligible(string)=0
map< string, aopt > optMap
Options map.
static fieldFactory * createFieldFactory()
virtual gfield loadField(string, goptions)=0
fieldFactory * fFactory
fieldFactory that created the field
void mergeMaps(map< string, string > &lhs, const map< string, string > &rhs)
map< string, string > getFilesInDirectory(string directory)