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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.7/] [tools/] [src/] [librtcltools/] [RtclStats.hpp] - Blame information for rev 33

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 wfjm
// $Id: RtclStats.hpp 495 2013-03-06 17:13:48Z mueller $
2 10 wfjm
//
3 19 wfjm
// Copyright 2011-2013 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4 10 wfjm
//
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 19 wfjm
// 2013-03-06   495   1.0.1  Rename Exec->Collect
17 10 wfjm
// 2011-02-26   364   1.0    Initial version
18
// 2011-02-20   363   0.1    fFirst draft
19
// ---------------------------------------------------------------------------
20
 
21
 
22
/*!
23
  \file
24 19 wfjm
  \version $Id: RtclStats.hpp 495 2013-03-06 17:13:48Z mueller $
25 10 wfjm
  \brief   Declaration of class RtclStats.
26
*/
27
 
28
#ifndef included_Retro_RtclStats
29
#define included_Retro_RtclStats 1
30
 
31
#include <string>
32
 
33
#include "RtclArgs.hpp"
34
#include "librtools/Rstats.hpp"
35
 
36
namespace Retro {
37
 
38
  class RtclStats {
39
    public:
40
      struct Context {
41
        std::string   opt;
42
        std::string   varname;
43
        std::string   format;
44
        int           width;
45
        int           prec;
46
 
47
                      Context()
48
                        : opt(), varname(), format(), width(0), prec(0)
49
                      {}
50
      };
51
 
52
      static bool     GetArgs(RtclArgs& args, Context& cntx);
53 19 wfjm
      static bool     Collect(RtclArgs& args, const Context& cntx,
54
                              const Rstats& stats);
55 10 wfjm
  };
56
 
57
} // end namespace Retro
58
 
59
//#include "RtclStats.ipp"
60
 
61
#endif

powered by: WebSVN 2.1.0

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