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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [src/] [librw11/] [Rw11Virt.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: Rw11Virt.hpp 495 2013-03-06 17:13:48Z 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-03-06   495   1.0    Initial version
17
// 2013-02-13   488   0.1    First draft
18
// ---------------------------------------------------------------------------
19
 
20
 
21
/*!
22
  \file
23
  \version $Id: Rw11Virt.hpp 495 2013-03-06 17:13:48Z mueller $
24
  \brief   Declaration of class Rw11Virt.
25
*/
26
 
27
#ifndef included_Retro_Rw11Virt
28
#define included_Retro_Rw11Virt 1
29
 
30
#include <string>
31
#include <iostream>
32
 
33
#include "boost/utility.hpp"
34
 
35
#include "librtools/RparseUrl.hpp"
36
#include "librtools/RerrMsg.hpp"
37
#include "librtools/Rstats.hpp"
38
#include "Rw11Unit.hpp"
39
 
40
namespace Retro {
41
 
42
  class Rw11Virt : private boost::noncopyable {
43
    public:
44
      explicit      Rw11Virt(Rw11Unit* punit);
45
      virtual      ~Rw11Virt();
46
 
47
      Rw11Unit&     Unit() const;
48
      Rw11Cntl&     Cntl() const;
49
      Rw11Cpu&      Cpu() const;
50
      Rw11&         W11() const;
51
      RlinkServer&  Server() const;
52
      RlogFile&     LogFile() const;
53
 
54
      virtual bool  Open(const std::string& url, RerrMsg& emsg) = 0;
55
 
56
      const Rstats& Stats() const;
57
 
58
      virtual void  Dump(std::ostream& os, int ind=0, const char* text=0) const;
59
 
60
    // statistics counter indices
61
      enum stats {
62
        kDimStat = 0
63
      };
64
 
65
    protected:
66
      Rw11Unit*     fpUnit;                 //<! back ref to unit
67
      RparseUrl     fUrl;
68
      Rstats        fStats;                 //!< statistics
69
  };
70
 
71
} // end namespace Retro
72
 
73
#include "Rw11Virt.ipp"
74
 
75
#endif

powered by: WebSVN 2.1.0

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