14 entry entries_RunI[] {
80 entry entries_PhaseI[] {
146 entry entries_PhaseII[] {
217 entry* entries = entries_RunI;
221 constexpr bool same(
char const *x,
char const *y) {
222 return !*x && !*y ?
true : (*x == *y && same(x+1, y+1));
226 return !entries->name ? 0 :
227 entries->type == type ? entries->name :
228 objectIdToString(type, entries+1);
232 return !entries->name ?
invalid :
233 same(entries->name, name) ? entries->type :
234 stringToObjectId(name, entries+1);
243 entries = entries_RunI;
249 entries = entries_PhaseI;
255 entries = entries_PhaseII;
262 return stringToId(name.c_str());
268 return idToString(type);
274 const char *
result = objectIdToString(type, entries);
279 <<
"Unknown alignableObjectId " <<
type;
292 <<
"Unknown alignableObjectId " <<
name;
static void isRunIGeometry()
sets entries-pointer to names of RunI geometry
static std::string typeToName(align::StructureType type)
Convert type to name.
static align::StructureType stringToId(const char *)
static void isPhaseIIGeometry()
sets entries-pointer to names of PhaseII geometry
static align::StructureType nameToType(const std::string &name)
Convert name to type.
static void isPhaseIGeometry()
sets entries-pointer to names of PhaseI geometry
static const char * idToString(align::StructureType type)