Line 1... |
Line 1... |
// $Id: RtclGetList.cpp 492 2013-02-24 22:14:47Z mueller $
|
// $Id: RtclGetList.cpp 516 2013-05-05 21:24:52Z mueller $
|
//
|
//
|
// Copyright 2013- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
// Copyright 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 16... |
Line 16... |
// 2013-02-12 487 1.0 Initial version
|
// 2013-02-12 487 1.0 Initial version
|
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
|
|
/*!
|
/*!
|
\file
|
\file
|
\version $Id: RtclGetList.cpp 492 2013-02-24 22:14:47Z mueller $
|
\version $Id: RtclGetList.cpp 516 2013-05-05 21:24:52Z mueller $
|
\brief Implemenation of class RtclGetList.
|
\brief Implemenation of class RtclGetList.
|
*/
|
*/
|
|
|
#include <iostream>
|
#include <iostream>
|
|
|
Line 62... |
Line 62... |
void RtclGetList::Add(const std::string& name, RtclGetBase* pget)
|
void RtclGetList::Add(const std::string& name, RtclGetBase* pget)
|
{
|
{
|
typedef std::pair<Retro::RtclGetList::map_it_t, bool> map_ins_t;
|
typedef std::pair<Retro::RtclGetList::map_it_t, bool> map_ins_t;
|
map_ins_t ret = fMap.insert(map_val_t(name, pget));
|
map_ins_t ret = fMap.insert(map_val_t(name, pget));
|
if (ret.second == false)
|
if (ret.second == false)
|
throw Rexception("RtclGetList::Add:", "Bad args: " +
|
throw Rexception("RtclGetList::Add:",
|
string("duplicate name: ") + name);
|
string("Bad args: duplicate name: '") + name + "'");
|
return;
|
return;
|
}
|
}
|
|
|
//------------------------------------------+-----------------------------------
|
//------------------------------------------+-----------------------------------
|
//! FIXME_docs
|
//! FIXME_docs
|