28 int main(
int argc,
char **argv)
41 JParser<> zap(
"Auxiliary program to merge detector files.");
45 zap[
'V'] =
make_field(variant) =
"", getDetectorVersions<string>();
51 catch(
const exception &error) {
52 FATAL(error.what() << endl);
62 int highestStringNr = 0;
67 catch(
const JException& error) {
71 for (JDetector::const_iterator module = buffer.begin(); module != buffer.end(); ++module) {
73 detector.push_back(*module);
76 if (firstStringNr > 0) {
78 if( module->getLocation().getString() > highestStringNr ) {
79 highestStringNr = module->getLocation().getString();
82 const int newStringNr = firstStringNr + module->getLocation().getString() - 1;
84 detector.back().setLocation(JModuleLocation(newStringNr, module->getLocation().getFloor()));
89 if (firstStringNr > 0) {
90 firstStringNr += highestStringNr;
96 detector.setVersion(variant);
102 catch(
const JException& error) {