1 #include "Alignment/Geners/interface/IOException.hh" 3 #include "Alignment/Geners/interface/ItemDescriptor.hh" 6 ItemDescriptor::ItemDescriptor() : classId_(ClassId::invalidId()) {}
8 ItemDescriptor::ItemDescriptor(
const ClassId &classId,
const char *ioPrototype,
const char *
name,
const char *categ)
10 ioProto_(ioPrototype ? ioPrototype :
""),
12 if (classId_.name().empty())
13 throw gs::IOInvalidArgument(
"In ItemDescriptor constructor: invalid class id");
16 bool ItemDescriptor::isSameClassIdandIO(
const ItemDescriptor &
r)
const {
17 return !classId_.name().empty() && classId_.name() == r.classId_.name() && ioProto_ == r.ioProto_;
20 bool ItemDescriptor::isEqual(
const ItemDescriptor &r)
const {
21 return !classId_.name().empty() && classId_ == r.classId_ && ioProto_ == r.ioProto_ && nameCat_ == r.nameCat_;