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;
71 for (JDetector::const_iterator module = buffer.begin(); module != buffer.end(); ++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;
89 if (firstStringNr > 0) {
90 firstStringNr += highestStringNr;