1 #include "Alignment/Geners/interface/CatalogIO.hh"
5 const unsigned mergeLevel,
6 const std::vector<std::string>& annotations,
7 const AbsCatalog&
catalog,
const unsigned formatId)
9 os.seekp(0, std::ios_base::beg);
11 const unsigned endianness = 0x01020304;
12 const unsigned char sizelong =
sizeof(long);
14 write_pod(os, formatId);
15 write_pod(os, endianness);
16 write_pod(os, sizelong);
17 write_pod(os, compressionCode);
18 write_pod(os, mergeLevel);
19 write_pod_vector(os, annotations);
22 catalog.classId().write(os) && catalog.write(os);
bool writeBinaryCatalog(std::ostream &os, const unsigned compressionCode, const unsigned mergeLevel, const std::vector< std::string > &annotations, const AbsCatalog &catalog, const unsigned formatId)