w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Rw11Virt.hpp
Go to the documentation of this file.
1// $Id: Rw11Virt.hpp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2013-2019 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2019-06-07 1160 1.1.4 Stats() not longer const
8// 2018-12-16 1084 1.1.3 use =delete for noncopyable instead of boost
9// 2017-04-15 875 1.1.2 add Url() const getter
10// 2017-04-07 868 1.1.1 Dump(): add detail arg
11// 2017-04-02 864 1.1 add fWProt,WProt()
12// 2013-03-06 495 1.0 Initial version
13// 2013-02-13 488 0.1 First draft
14// ---------------------------------------------------------------------------
15
16
21#ifndef included_Retro_Rw11Virt
22#define included_Retro_Rw11Virt 1
23
24#include <string>
25#include <iostream>
26
28#include "librtools/RerrMsg.hpp"
29#include "librtools/Rstats.hpp"
30#include "Rw11Unit.hpp"
31
32namespace Retro {
33
34 class Rw11Virt {
35 public:
36 explicit Rw11Virt(Rw11Unit* punit);
37 virtual ~Rw11Virt();
38
39 Rw11Virt(const Rw11Virt&) = delete; // noncopyable
40 Rw11Virt& operator=(const Rw11Virt&) = delete; // noncopyable
41
42 Rw11Unit& Unit() const;
43 Rw11Cntl& Cntl() const;
44 Rw11Cpu& Cpu() const;
45 Rw11& W11() const;
46 RlinkServer& Server() const;
47 RlogFile& LogFile() const;
48 virtual bool WProt() const;
49
50 const RparseUrl& Url() const;
51
52 virtual bool Open(const std::string& url, RerrMsg& emsg) = 0;
53
54 Rstats& Stats();
55
56 virtual void Dump(std::ostream& os, int ind=0, const char* text=0,
57 int detail=0) const;
58
59 // statistics counter indices
60 enum stats {
61 kDimStat = 0
62 };
63
64 protected:
67 bool fWProt;
69 };
70
71} // end namespace Retro
72
73#include "Rw11Virt.ipp"
74
75#endif
FIXME_docs.
Definition: RerrMsg.hpp:25
FIXME_docs.
Definition: RlogFile.hpp:34
FIXME_docs.
Definition: RparseUrl.hpp:27
FIXME_docs.
Definition: Rstats.hpp:28
FIXME_docs.
Definition: Rw11Cntl.hpp:42
FIXME_docs.
Definition: Rw11Cpu.hpp:66
FIXME_docs.
Definition: Rw11Unit.hpp:39
FIXME_docs.
Definition: Rw11Virt.hpp:34
RparseUrl fUrl
Definition: Rw11Virt.hpp:66
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
Definition: Rw11Virt.cpp:60
Rw11 & W11() const
FIXME_docs.
Definition: Rw11Virt.ipp:47
Rstats fStats
statistics
Definition: Rw11Virt.hpp:68
virtual bool WProt() const
FIXME_docs.
Definition: Rw11Virt.cpp:52
Rw11Cpu & Cpu() const
FIXME_docs.
Definition: Rw11Virt.ipp:39
virtual ~Rw11Virt()
Destructor.
Definition: Rw11Virt.cpp:46
const RparseUrl & Url() const
FIXME_docs.
Definition: Rw11Virt.ipp:71
Rw11Unit * fpUnit
back ref to unit
Definition: Rw11Virt.hpp:65
Rstats & Stats()
FIXME_docs.
Definition: Rw11Virt.ipp:79
Rw11Cntl & Cntl() const
FIXME_docs.
Definition: Rw11Virt.ipp:31
Rw11Virt(const Rw11Virt &)=delete
RlogFile & LogFile() const
FIXME_docs.
Definition: Rw11Virt.ipp:63
bool fWProt
write protected
Definition: Rw11Virt.hpp:67
virtual bool Open(const std::string &url, RerrMsg &emsg)=0
Rw11Unit & Unit() const
FIXME_docs.
Definition: Rw11Virt.ipp:23
RlinkServer & Server() const
FIXME_docs.
Definition: Rw11Virt.ipp:55
Rw11Virt & operator=(const Rw11Virt &)=delete
FIXME_docs.
Definition: Rw11.hpp:31
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47