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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [src/] [librtcltools/] [RtclSetList.hpp] - Blame information for rev 24

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 wfjm
// $Id: RtclSetList.hpp 488 2013-02-16 18:49:47Z mueller $
2
//
3
// Copyright 2013- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4
//
5
// This program is free software; you may redistribute and/or modify it under
6
// the terms of the GNU General Public License as published by the Free
7
// Software Foundation, either version 2, or at your option any later version.
8
//
9
// This program is distributed in the hope that it will be useful, but
10
// WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
11
// or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12
// for complete details.
13
// 
14
// Revision History: 
15
// Date         Rev Version  Comment
16
// 2013-02-12   487   1.0    Initial version
17
// ---------------------------------------------------------------------------
18
 
19
/*!
20
  \file
21
  \version $Id: RtclSetList.hpp 488 2013-02-16 18:49:47Z mueller $
22
  \brief   Declaration of class \c RtclSetList.
23
*/
24
 
25
#ifndef included_Retro_RtclSetList
26
#define included_Retro_RtclSetList 1
27
 
28
#include "tcl.h"
29
 
30
#include <cstdint>
31
#include <string>
32
#include <map>
33
 
34
#include "boost/utility.hpp"
35
#include "boost/function.hpp"
36
 
37
#include "RtclSet.hpp"
38
#include "librtcltools/RtclArgs.hpp"
39
 
40
namespace Retro {
41
 
42
  class RtclSetList : private boost::noncopyable {
43
    public:
44
                    RtclSetList();
45
      virtual      ~RtclSetList();
46
 
47
      void          Add(const std::string& name, RtclSetBase* pset);
48
 
49
      template <class TP>
50
      void          Add(const std::string& name,
51
                        const boost::function<void(TP)>& set);
52
 
53
      int           M_set(RtclArgs& args);
54
 
55
    protected:
56
 
57
 
58
    protected:
59
      typedef std::map<std::string, RtclSetBase*> map_t;
60
      typedef map_t::iterator         map_it_t;
61
      typedef map_t::const_iterator   map_cit_t;
62
      typedef map_t::value_type       map_val_t;
63
 
64
      map_t         fMap;
65
  };
66
 
67
} // end namespace Retro
68
 
69
#include "RtclSetList.ipp"
70
 
71
#endif

powered by: WebSVN 2.1.0

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