1 #include "Alignment/Geners/interface/ItemLocation.hh" 2 #include "Alignment/Geners/interface/streamposIO.hh" 3 #include "Alignment/Geners/interface/IOException.hh" 16 if (cachedItemURI_.size() && r.cachedItemURI_.size())
17 if (cachedItemURI_ != r.cachedItemURI_)
21 if (cachedItemURI_ != r.cachedItemURI_)
33 write_pod(of, cachedItemURI_);
37 ItemLocation* ItemLocation::read(
const ClassId&
id, std::istream&
in)
39 static const ClassId current(ClassId::makeId<ItemLocation>());
40 current.ensureSameId(
id);
46 read_pod(in, &globURI);
49 read_pod(in, &cachedItemURI);
52 throw IOReadFailure(
"In ItemLocation::read: input stream failure");
54 return new ItemLocation(pos, globURI.c_str(), cachedItemURI.c_str());
bool operator==(const QGLikelihoodParameters &lhs, const QGLikelihoodCategory &rhs)
Test if parameters are compatible with category.