OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [src/] [librtcltools/] [RtclGetList.cpp] - Diff between revs 19 and 21

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 19 Rev 21
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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.