1 #include "Alignment/Geners/interface/IOException.hh"
2 #include "Alignment/Geners/interface/ItemLocation.hh"
3 #include "Alignment/Geners/interface/streamposIO.hh"
14 if (!cachedItemURI_.empty() && !
r.cachedItemURI_.empty())
15 if (cachedItemURI_ !=
r.cachedItemURI_)
17 }
else if (cachedItemURI_ !=
r.cachedItemURI_)
28 write_pod(of, cachedItemURI_);
33 static const ClassId current(ClassId::makeId<ItemLocation>());
34 current.ensureSameId(
id);
40 read_pod(
in, &globURI);
43 read_pod(
in, &cachedItemURI);
46 throw IOReadFailure(
"In ItemLocation::read: input stream failure");
48 return new ItemLocation(
pos, globURI.c_str(), cachedItemURI.c_str());