w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Rw11UnitVirt.hpp
Go to the documentation of this file.
1// $Id: Rw11UnitVirt.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-09 1080 1.2 add HasVirt(); return ref for Virt()
8// 2018-12-01 1076 1.1 use unique_ptr instead of scoped_ptr
9// 2017-04-15 875 1.0.2 add VirtBase()
10// 2017-04-07 868 1.0.1 Dump(): add detail arg
11// 2013-03-03 494 1.0 Initial version
12// 2013-02-22 490 0.1 First draft
13// ---------------------------------------------------------------------------
14
15
20#ifndef included_Retro_Rw11UnitVirt
21#define included_Retro_Rw11UnitVirt 1
22
23#include <memory>
24
25#include "Rw11Unit.hpp"
26
27namespace Retro {
28
29 template <class TV>
30 class Rw11UnitVirt : public Rw11Unit {
31 public:
32
33 Rw11UnitVirt(Rw11Cntl* pcntl, size_t index);
35
36 bool HasVirt() const;
37 TV& Virt();
38 const TV& Virt() const;
39
40 virtual Rw11Virt* VirtBase() const;
41 virtual bool Attach(const std::string& url, RerrMsg& emsg);
42 virtual void Detach();
43
44 virtual void Dump(std::ostream& os, int ind=0, const char* text=0,
45 int detail=0) const;
46
47 protected:
48 std::unique_ptr<TV> fupVirt;
49
50 };
51
52} // end namespace Retro
53
54#include "Rw11UnitVirt.ipp"
55
56#endif
FIXME_docs.
Definition: RerrMsg.hpp:25
FIXME_docs.
Definition: Rw11Cntl.hpp:42
Implemenation (inline) of Rw11UnitVirt.
TV & Virt()
FIXME_docs.
virtual void Detach()
FIXME_docs.
~Rw11UnitVirt()
Destructor.
std::unique_ptr< TV > fupVirt
virtual Rw11Virt * VirtBase() const
FIXME_docs.
virtual bool Attach(const std::string &url, RerrMsg &emsg)
FIXME_docs.
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
bool HasVirt() const
FIXME_docs.
FIXME_docs.
Definition: Rw11Unit.hpp:39
FIXME_docs.
Definition: Rw11Virt.hpp:34
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47