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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.61/] [tools/] [src/] [librtcltools/] [RtclOPtr.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: RtclOPtr.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-20   363   1.0    Initial version
17
// ---------------------------------------------------------------------------
18
 
19
 
20
/*!
21
  \file
22
  \version $Id: RtclOPtr.hpp 365 2011-02-28 07:28:26Z mueller $
23
  \brief   Declaration of class RtclOPtr.
24
*/
25
 
26
#ifndef included_Retro_RtclOPtr
27
#define included_Retro_RtclOPtr 1
28
 
29
#include "tcl.h"
30
 
31
namespace Retro {
32
 
33
  class RtclOPtr {
34
    public:
35
                        RtclOPtr();
36
                        RtclOPtr(Tcl_Obj* pobj);
37
                        RtclOPtr(const RtclOPtr& rhs);
38
                        ~RtclOPtr();
39
 
40
                        operator Tcl_Obj*() const;
41
      bool              operator !() const;
42
      RtclOPtr&         operator=(const RtclOPtr& rhs);
43
      RtclOPtr&         operator=(Tcl_Obj* pobj);
44
 
45
    protected:
46
      Tcl_Obj*          fpObj;              //!< pointer to tcl object
47
  };
48
 
49
} // end namespace Retro
50
 
51
// implementation all inline
52
#include "RtclOPtr.ipp"
53
 
54
#endif

powered by: WebSVN 2.1.0

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