w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
RtclRw11Unit.hpp
Go to the documentation of this file.
1// $Id: RtclRw11Unit.hpp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2013-2018 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2018-12-01 1076 1.3 use unique_ptr instead of scoped_ptr
8// 2018-09-15 1046 1.2.1 fix for clang: M_virt() now public
9// 2017-04-08 870 1.2 drop fpCpu, use added Cpu()=0 instead
10// 2017-04-02 863 1.1 add fpVirt,DetachCleanup(),AttachDone(),M_virt()
11// 2013-03-03 494 1.0 Initial version
12// 2013-02-16 488 0.1 First draft
13// ---------------------------------------------------------------------------
14
15
20#ifndef included_Retro_RtclRw11Unit
21#define included_Retro_RtclRw11Unit 1
22
23#include <cstddef>
24#include <string>
25#include <memory>
26
30
31#include "librw11/Rw11Cpu.hpp"
32#include "librw11/Rw11Unit.hpp"
33
34#include "RtclRw11Virt.hpp"
35
36namespace Retro {
37
38 class RtclRw11Unit : public RtclProxyBase {
39 public:
40
41 RtclRw11Unit(const std::string& type);
42 virtual ~RtclRw11Unit();
43
44 virtual Rw11Unit& Obj() = 0;
45 virtual Rw11Cpu& Cpu() const = 0;
46
47 protected:
48 virtual void AttachDone() = 0;
49 void DetachCleanup();
50 int M_get(RtclArgs& args);
51 int M_set(RtclArgs& args);
52 int M_attach(RtclArgs& args);
53 int M_detach(RtclArgs& args);
54 int M_dump(RtclArgs& args);
55 int M_default(RtclArgs& args);
56 public:
57 int M_virt(RtclArgs& args);
58
59 protected:
62 std::unique_ptr<RtclRw11Virt> fupVirt;
63 };
64
65} // end namespace Retro
66
67//#include "RtclRw11Unit.ipp"
68
69#endif
FIXME_docs.
Definition: RtclArgs.hpp:41
int M_set(RtclArgs &args)
FIXME_docs.
virtual void AttachDone()=0
virtual Rw11Cpu & Cpu() const =0
void DetachCleanup()
FIXME_docs.
int M_dump(RtclArgs &args)
FIXME_docs.
int M_get(RtclArgs &args)
FIXME_docs.
virtual Rw11Unit & Obj()=0
int M_detach(RtclArgs &args)
FIXME_docs.
int M_virt(RtclArgs &args)
FIXME_docs.
virtual ~RtclRw11Unit()
Destructor.
std::unique_ptr< RtclRw11Virt > fupVirt
int M_default(RtclArgs &args)
FIXME_docs.
int M_attach(RtclArgs &args)
FIXME_docs.
FIXME_docs.
Definition: Rw11Cpu.hpp:66
FIXME_docs.
Definition: Rw11Unit.hpp:39
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47