249{
252 os << "G4AttCheck: ERROR: zero definitions pointer." << endl;
253 return os;
254 }
257 os << storeKey << ':' << endl;
258 }
260
261 os << "G4AttCheck: zero values pointer." << endl;
262 return os;
263 }
264 vector<G4AttValue>::const_iterator iValue;
265 for (iValue = ac.
fpValues->begin(); iValue != ac.
fpValues->end(); ++iValue) {
266 const G4String& valueName = iValue->GetName();
267 const G4String& value = iValue->GetValue();
268 map<G4String,G4AttDef>::const_iterator iDef =
273 os << "G4AttCheck: ERROR: No G4AttDef for G4AttValue \""
274 << valueName << "\": " << value << endl;
275 } else {
276 const G4String& category = iDef->second.GetCategory();
277 const G4String& extra = iDef->second.GetExtra();
278 const G4String& valueType = iDef->second.GetValueType();
281 os <<
282 "G4AttCheck: ERROR: Illegal Category Field \"" << category
283 << "\" for G4AttValue \"" << valueName << "\": " << value <<
284 "\n Possible Categories:";
285 set<G4String>::iterator i;
287 os << ' ' << *i;
288 }
289 os << endl;
290 }
291 if(category ==
"Physics" && ac.
fUnits->find(extra) == ac.
fUnits->end()) {
293 os <<
294 "G4AttCheck: ERROR: Illegal Extra field \""<< extra
295 << "\" for G4AttValue \"" << valueName << "\": " << value <<
296 "\n Possible Extra fields if Category==\"Physics\":\n ";
297 set<G4String>::iterator i;
298 for (i = ac.
fUnits->begin(); i != ac.
fUnits->end(); ++i) {
299 os << ' ' << *i;
300 }
301 os << endl;
302 }
305 os <<
306 "G4AttCheck: ERROR: Illegal Value Type field \"" << valueType
307 << "\" for G4AttValue \"" << valueName << "\": " << value <<
308 "\n Possible Value Types:";
309 set<G4String>::iterator i;
311 os << ' ' << *i;
312 }
313 os << endl;
314 }
315 }
317 os << iDef->second.GetDesc()
318 << " (" << valueName
319 << "): " << value;
320 if (iDef->second.GetCategory() == "Physics" &&
321 !iDef->second.GetExtra().empty()) {
322 os << " (" << iDef->second.GetExtra() << ")";
323 }
324 os << endl;
325 }
326 }
327 return os;
328}
static G4ThreadLocal std::set< G4String > * fUnits
const std::map< G4String, G4AttDef > * fpDefinitions
static G4ThreadLocal std::set< G4String > * fCategories
static G4ThreadLocal std::set< G4String > * fValueTypes
const std::vector< G4AttValue > * fpValues
G4bool GetStoreKey(const std::map< G4String, G4AttDef > *definitions, G4String &key)
static PROLOG_HANDLER error