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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.61/] [tools/] [src/] [librutiltpp/] [RtclBvi.hpp] - Blame information for rev 40

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

Line No. Rev Author Line
1 19 wfjm
// $Id: RtclBvi.hpp 486 2013-02-10 22:34:43Z mueller $
2 10 wfjm
//
3
// Copyright 2011- 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
// 2011-03-27   374   1.0    Initial version
17
// 2011-02-18   362   0.1    First draft
18
// ---------------------------------------------------------------------------
19
 
20
/*!
21
  \file
22 19 wfjm
  \version $Id: RtclBvi.hpp 486 2013-02-10 22:34:43Z mueller $
23 10 wfjm
  \brief   Declaration of class RtclBvi.
24
*/
25
 
26
#ifndef included_Retro_RtclBvi
27
#define included_Retro_RtclBvi 1
28
 
29
#include "tcl.h"
30
 
31
namespace Retro {
32
 
33
  class RtclBvi {
34
    public:
35
      static void   CreateCmds(Tcl_Interp* interp);
36
 
37
    protected:
38
      enum ConvMode {kStr2Int = 0,
39
                     kInt2Str};
40
 
41
      static int    DoCmd(ClientData cdata, Tcl_Interp* interp,
42
                           int objc, Tcl_Obj* const objv[]);
43
      static Tcl_Obj* DoConv(Tcl_Interp* interp, ConvMode mode, Tcl_Obj* val,
44
                             char form, int nbit);
45
      static bool   CheckFormat(Tcl_Interp* interp, int objc,
46
                                Tcl_Obj* const objv[], bool& list,
47
                                char& form, int& nbit);
48
  };
49
 
50
} // end namespace Retro
51
 
52
//#include "RtclBvi.ipp"
53
 
54
#endif

powered by: WebSVN 2.1.0

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