Line 1... |
Line 1... |
// $Id: RtclNameSet.cpp 492 2013-02-24 22:14:47Z mueller $
|
// $Id: RtclNameSet.cpp 516 2013-05-05 21:24:52Z mueller $
|
//
|
//
|
// Copyright 2011-2013 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
// Copyright 2011-2013 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
//
|
//
|
// This program is free software; you may redistribute and/or modify it under
|
// This program is free software; you may redistribute and/or modify it under
|
// the terms of the GNU General Public License as published by the Free
|
// the terms of the GNU General Public License as published by the Free
|
Line 17... |
Line 17... |
// 2011-02-20 363 1.0 Initial version
|
// 2011-02-20 363 1.0 Initial version
|
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
|
|
/*!
|
/*!
|
\file
|
\file
|
\version $Id: RtclNameSet.cpp 492 2013-02-24 22:14:47Z mueller $
|
\version $Id: RtclNameSet.cpp 516 2013-05-05 21:24:52Z mueller $
|
\brief Implemenation of RtclNameSet.
|
\brief Implemenation of RtclNameSet.
|
*/
|
*/
|
|
|
// debug
|
// debug
|
#include <iostream>
|
#include <iostream>
|
Line 62... |
Line 62... |
string name(nset, ibeg, iend-ibeg);
|
string name(nset, ibeg, iend-ibeg);
|
nset_ins_t ret = fSet.insert(name);
|
nset_ins_t ret = fSet.insert(name);
|
if (ret.second == false) // or use !(ret.second)
|
if (ret.second == false) // or use !(ret.second)
|
throw Rexception("RtclNameSet::<ctor>", "Bad args: " +
|
throw Rexception("RtclNameSet::<ctor>", "Bad args: " +
|
string("duplicate name '") + name +
|
string("duplicate name '") + name +
|
string("' in set '") + nset + string("'"));
|
"' in set '" + nset + "'");
|
}
|
}
|
if (iend == string::npos) break;
|
if (iend == string::npos) break;
|
ibeg = iend+1;
|
ibeg = iend+1;
|
}
|
}
|
}
|
}
|