1 #include "Alignment/Geners/interface/IOException.hh" 3 #include "Alignment/Geners/interface/ItemDescriptor.hh" 6 ItemDescriptor::ItemDescriptor()
7 : classId_(ClassId::invalidId())
11 ItemDescriptor::ItemDescriptor(
12 const ClassId& classId,
const char* ioPrototype,
13 const char*
name,
const char* categ)
15 ioProto_(ioPrototype ? ioPrototype :
""),
19 if (classId_.name().empty())
throw gs::IOInvalidArgument(
20 "In ItemDescriptor constructor: invalid class id");
23 bool ItemDescriptor::isSameClassIdandIO(
const ItemDescriptor&
r)
const 25 return !classId_.name().empty() &&
26 classId_.name() == r.classId_.name() &&
27 ioProto_ == r.ioProto_;
30 bool ItemDescriptor::isEqual(
const ItemDescriptor& r)
const 32 return !classId_.name().empty() &&
33 classId_ == r.classId_ &&
34 ioProto_ == r.ioProto_ &&
35 nameCat_ == r.nameCat_;