w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
RtclProxyOwned.hpp
Go to the documentation of this file.
1// $Id: RtclProxyOwned.hpp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2011-2018 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2018-12-07 1078 1.1.1 use std::shared_ptr instead of boost
8// 2013-02-05 482 1.1 use shared_ptr to TO*; add ObjPtr();
9// 2011-02-13 361 1.0 Initial version
10// 2011-02-11 360 0.1 First draft
11// ---------------------------------------------------------------------------
12
17#ifndef included_Retro_RtclProxyOwned
18#define included_Retro_RtclProxyOwned 1
19
20#include <memory>
21
22#include "RtclProxyBase.hpp"
23
24namespace Retro {
25
26 template <class TO>
28 public:
30 RtclProxyOwned(const std::string& type);
31 RtclProxyOwned(const std::string& type, Tcl_Interp* interp,
32 const char* name, TO* pobj=nullptr);
34
35 TO& Obj();
36 const std::shared_ptr<TO>& ObjSPtr();
37
38 protected:
39 std::shared_ptr<TO> fspObj;
40
41 };
42
43} // end namespace Retro
44
45// implementation is all inline
46#include "RtclProxyOwned.ipp"
47
48#endif
Implemenation (all inline) of class RtclProxyOwned.
const std::shared_ptr< TO > & ObjSPtr()
FIXME_docs.
~RtclProxyOwned()
FIXME_docs.
std::shared_ptr< TO > fspObj
sptr to managed object
TO & Obj()
FIXME_docs.
RtclProxyOwned()
Default constructor.
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47