Line 1... |
Line 1... |
// $Id: RtclProxyOwned.ipp 365 2011-02-28 07:28:26Z mueller $
|
// $Id: RtclProxyOwned.ipp 491 2013-02-23 12:41:18Z mueller $
|
//
|
//
|
// Copyright 2011- by Walter F.J. Mueller
|
// Copyright 2011-2013 by Walter F.J. Mueller
|
//
|
//
|
// This program is free software; you may redistribute and/or modify it under
|
// This program is free software; you may redistribute and/or modify it under
|
// the terms of the GNU General Public License as published by the Free
|
// the terms of the GNU General Public License as published by the Free
|
// Software Foundation, either version 2, or at your option any later version.
|
// Software Foundation, either version 2, or at your option any later version.
|
//
|
//
|
Line 11... |
Line 11... |
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
// for complete details.
|
// for complete details.
|
//
|
//
|
// Revision History:
|
// Revision History:
|
// Date Rev Version Comment
|
// Date Rev Version Comment
|
|
// 2013-02-05 482 1.1 use shared_ptr to TO*; add ObjPtr();
|
// 2011-02-13 361 1.0 Initial version
|
// 2011-02-13 361 1.0 Initial version
|
// 2011-02-11 360 0.1 First draft
|
// 2011-02-11 360 0.1 First draft
|
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
|
|
/*!
|
/*!
|
\file
|
\file
|
\version $Id:
|
\version $Id:
|
\brief Implemenation (inline) of class RtclProxyOwned.
|
\brief Implemenation (all inline) of class RtclProxyOwned.
|
*/
|
*/
|
|
|
// all method definitions in namespace Retro (avoid using in includes...)
|
/*!
|
|
\class Retro::RtclProxyOwned
|
|
\brief FIXME_docs
|
|
*/
|
|
|
|
// all method definitions in namespace Retro
|
namespace Retro {
|
namespace Retro {
|
|
|
//------------------------------------------+-----------------------------------
|
//------------------------------------------+-----------------------------------
|
//! Default constructor
|
//! Default constructor
|
|
|
template
|
template
|
inline RtclProxyOwned::RtclProxyOwned()
|
inline RtclProxyOwned::RtclProxyOwned()
|
: RtclProxyBase(),
|
: RtclProxyBase(),
|
fpObj(0)
|
fspObj()
|
{}
|
{}
|
|
|
//------------------------------------------+-----------------------------------
|
//------------------------------------------+-----------------------------------
|
//! FIXME_docs
|
//! FIXME_docs
|
|
|
template
|
template
|
inline RtclProxyOwned::RtclProxyOwned(const std::string& type)
|
inline RtclProxyOwned::RtclProxyOwned(const std::string& type)
|
: RtclProxyBase(type),
|
: RtclProxyBase(type),
|
fpObj(0)
|
fspObj()
|
{}
|
{}
|
|
|
//------------------------------------------+-----------------------------------
|
//------------------------------------------+-----------------------------------
|
//! FIXME_docs
|
//! FIXME_docs
|
|
|
template
|
template
|
inline RtclProxyOwned::RtclProxyOwned(const std::string& type,
|
inline RtclProxyOwned::RtclProxyOwned(const std::string& type,
|
Tcl_Interp* interp, const char* name,
|
Tcl_Interp* interp, const char* name,
|
TO* pobj)
|
TO* pobj)
|
: RtclProxyBase(type),
|
: RtclProxyBase(type),
|
fpObj(pobj)
|
fspObj(pobj)
|
{
|
{
|
CreateObjectCmd(interp, name);
|
CreateObjectCmd(interp, name);
|
}
|
}
|
|
|
//------------------------------------------+-----------------------------------
|
//------------------------------------------+-----------------------------------
|
//! FIXME_docs
|
//! FIXME_docs
|
|
|
template
|
template
|
inline RtclProxyOwned::~RtclProxyOwned()
|
inline RtclProxyOwned::~RtclProxyOwned()
|
|
{}
|
|
|
|
//------------------------------------------+-----------------------------------
|
|
//! FIXME_docs
|
|
|
|
template
|
|
inline TO& RtclProxyOwned::Obj()
|
{
|
{
|
delete fpObj;
|
return *fspObj;
|
}
|
}
|
|
|
//------------------------------------------+-----------------------------------
|
//------------------------------------------+-----------------------------------
|
//! FIXME_docs
|
//! FIXME_docs
|
|
|
template
|
template
|
inline TO& RtclProxyOwned::Obj()
|
inline const boost::shared_ptr& RtclProxyOwned::ObjSPtr()
|
{
|
{
|
return *fpObj;
|
return fspObj;
|
}
|
}
|
|
|
} // end namespace Retro
|
} // end namespace Retro
|