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

Subversion Repositories w11

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 wfjm
// $Id: RtclGet.hpp 487 2013-02-12 19:14:38Z 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: RtclGet.hpp 487 2013-02-12 19:14:38Z mueller $
22
  \brief   Declaration of class \c RtclGet.
23
*/
24
 
25
#ifndef included_Retro_RtclGet
26
#define included_Retro_RtclGet 1
27
 
28
#include "tcl.h"
29
 
30
#include <cstdint>
31
#include <string>
32
 
33
#include "boost/function.hpp"
34
 
35
#include "RtclGetBase.hpp"
36
 
37
namespace Retro {
38
 
39
  template <class TP>
40
  class RtclGet : public RtclGetBase {
41
    public:
42
      explicit      RtclGet(const boost::function<TP()>& get);
43
                   ~RtclGet();
44
 
45
      virtual Tcl_Obj*  operator()() const;
46
 
47
    protected:
48
      boost::function<TP()> fGet;
49
  };
50
 
51
 
52
} // end namespace Retro
53
 
54
#include "RtclGet.ipp"
55
 
56
#endif

powered by: WebSVN 2.1.0

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