URL
https://opencores.org/ocsvn/w11/w11/trunk
Subversion Repositories w11
[/] [w11/] [tags/] [w11a_V0.74/] [tools/] [src/] [librtcltools/] [RtclStats.hpp] - Rev 38
Compare with Previous | Blame | View Log
// $Id: RtclStats.hpp 495 2013-03-06 17:13:48Z mueller $ // // Copyright 2011-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 // the terms of the GNU General Public License as published by the Free // Software Foundation, either version 2, or at your option any later version. // // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License // for complete details. // // Revision History: // Date Rev Version Comment // 2013-03-06 495 1.0.1 Rename Exec->Collect // 2011-02-26 364 1.0 Initial version // 2011-02-20 363 0.1 fFirst draft // --------------------------------------------------------------------------- /*! \file \version $Id: RtclStats.hpp 495 2013-03-06 17:13:48Z mueller $ \brief Declaration of class RtclStats. */ #ifndef included_Retro_RtclStats #define included_Retro_RtclStats 1 #include <string> #include "RtclArgs.hpp" #include "librtools/Rstats.hpp" namespace Retro { class RtclStats { public: struct Context { std::string opt; std::string varname; std::string format; int width; int prec; Context() : opt(), varname(), format(), width(0), prec(0) {} }; static bool GetArgs(RtclArgs& args, Context& cntx); static bool Collect(RtclArgs& args, const Context& cntx, const Rstats& stats); }; } // end namespace Retro //#include "RtclStats.ipp" #endif