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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [src/] [librtcltools/] [RtclProxyOwned.hpp] - Blame information for rev 10

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 10 wfjm
// $Id: RtclProxyOwned.hpp 365 2011-02-28 07:28:26Z mueller $
2
//
3
// Copyright 2011- 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
// 2011-02-13   361   1.0    Initial version
17
// 2011-02-11   360   0.1    First draft
18
// ---------------------------------------------------------------------------
19
 
20
/*!
21
  \file
22
  \version $Id: RtclProxyOwned.hpp 365 2011-02-28 07:28:26Z mueller $
23
  \brief   Declaration of class RtclProxyOwned.
24
*/
25
 
26
#ifndef included_Retro_RtclProxyOwned
27
#define included_Retro_RtclProxyOwned 1
28
 
29
#include "RtclProxyBase.hpp"
30
 
31
namespace Retro {
32
 
33
  template <class TO>
34
  class RtclProxyOwned : public RtclProxyBase {
35
    public:
36
                    RtclProxyOwned();
37
                    RtclProxyOwned(const std::string& type);
38
                    RtclProxyOwned(const std::string& type, Tcl_Interp* interp,
39
                                   const char* name, TO* pobj=0);
40
                    ~RtclProxyOwned();
41
 
42
      TO&           Obj();
43
 
44
    protected:
45
      void          SetObj(TO* pobj);
46
 
47
    protected:
48
      TO*           fpObj;                  //!< ptr to managed object
49
 
50
 
51
  };
52
 
53
} // end namespace Retro
54
 
55
// implementation is all inline
56
#include "RtclProxyOwned.ipp"
57
 
58
#endif

powered by: WebSVN 2.1.0

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