diff --git a/tools/src/librwxxtpp/RtclRw11CntlBase.hpp b/tools/src/librwxxtpp/RtclRw11CntlBase.hpp index 74b2b726..86f29a09 100644 --- a/tools/src/librwxxtpp/RtclRw11CntlBase.hpp +++ b/tools/src/librwxxtpp/RtclRw11CntlBase.hpp @@ -1,4 +1,4 @@ -// $Id: RtclRw11CntlBase.hpp 504 2013-04-13 15:37:24Z mueller $ +// $Id: RtclRw11CntlBase.hpp 870 2017-04-08 18:24:34Z mueller $ // // Copyright 2013- by Walter F.J. Mueller // @@ -20,7 +20,7 @@ /*! \file - \version $Id: RtclRw11CntlBase.hpp 504 2013-04-13 15:37:24Z mueller $ + \version $Id: RtclRw11CntlBase.hpp 870 2017-04-08 18:24:34Z mueller $ \brief Declaration of class RtclRw11CntlBase. */ @@ -33,20 +33,20 @@ namespace Retro { - template + template class RtclRw11CntlBase : public RtclRw11Cntl { public: explicit RtclRw11CntlBase(const std::string& type); ~RtclRw11CntlBase(); - TO& Obj(); - const boost::shared_ptr& ObjSPtr(); + virtual TC& Obj(); + const boost::shared_ptr& ObjSPtr(); protected: int M_bootcode(RtclArgs& args); protected: - boost::shared_ptr fspObj; //!< sptr to managed object + boost::shared_ptr fspObj; //!< sptr to managed object }; } // end namespace Retro diff --git a/tools/src/librwxxtpp/RtclRw11CntlBase.ipp b/tools/src/librwxxtpp/RtclRw11CntlBase.ipp index 03c7c3f1..3b757bb5 100644 --- a/tools/src/librwxxtpp/RtclRw11CntlBase.ipp +++ b/tools/src/librwxxtpp/RtclRw11CntlBase.ipp @@ -1,4 +1,4 @@ -// $Id: RtclRw11CntlBase.ipp 848 2017-02-04 14:55:30Z mueller $ +// $Id: RtclRw11CntlBase.ipp 870 2017-04-08 18:24:34Z mueller $ // // Copyright 2013-2017 by Walter F.J. Mueller // @@ -20,7 +20,7 @@ /*! \file - \version $Id: RtclRw11CntlBase.ipp 848 2017-02-04 14:55:30Z mueller $ + \version $Id: RtclRw11CntlBase.ipp 870 2017-04-08 18:24:34Z mueller $ \brief Implemenation (all inline) of RtclRw11CntlBase. */ @@ -38,41 +38,41 @@ namespace Retro { //------------------------------------------+----------------------------------- //! Constructor -template -inline RtclRw11CntlBase::RtclRw11CntlBase(const std::string& type) +template +inline RtclRw11CntlBase::RtclRw11CntlBase(const std::string& type) : RtclRw11Cntl(type), - fspObj(new TO()) + fspObj(new TC()) { - AddMeth("bootcode", boost::bind(&RtclRw11CntlBase::M_bootcode,this, _1)); + AddMeth("bootcode", boost::bind(&RtclRw11CntlBase::M_bootcode,this, _1)); - TO* pobj = fspObj.get(); - fGets.Add("type", boost::bind(&TO::Type, pobj)); - fGets.Add("name", boost::bind(&TO::Name, pobj)); - fGets.Add ("base", boost::bind(&TO::Base, pobj)); - fGets.Add ("lam", boost::bind(&TO::Lam, pobj)); - fGets.Add ("found", boost::bind(&TO::ProbeFound, pobj)); - fGets.Add ("pdataint", boost::bind(&TO::ProbeDataInt, pobj)); - fGets.Add ("pdatarem", boost::bind(&TO::ProbeDataRem, pobj)); - fGets.Add ("enable",boost::bind(&TO::Enable, pobj)); - fGets.Add ("started",boost::bind(&TO::IsStarted, pobj)); - fGets.Add ("trace", boost::bind(&TO::TraceLevel,pobj)); + TC* pobj = fspObj.get(); + fGets.Add("type", boost::bind(&TC::Type, pobj)); + fGets.Add("name", boost::bind(&TC::Name, pobj)); + fGets.Add ("base", boost::bind(&TC::Base, pobj)); + fGets.Add ("lam", boost::bind(&TC::Lam, pobj)); + fGets.Add ("found", boost::bind(&TC::ProbeFound, pobj)); + fGets.Add ("pdataint", boost::bind(&TC::ProbeDataInt, pobj)); + fGets.Add ("pdatarem", boost::bind(&TC::ProbeDataRem, pobj)); + fGets.Add ("enable",boost::bind(&TC::Enable, pobj)); + fGets.Add ("started",boost::bind(&TC::IsStarted, pobj)); + fGets.Add ("trace", boost::bind(&TC::TraceLevel,pobj)); - fSets.Add ("enable", boost::bind(&TO::SetEnable,pobj,_1)); - fSets.Add ("trace", boost::bind(&TO::SetTraceLevel,pobj,_1)); + fSets.Add ("enable", boost::bind(&TC::SetEnable,pobj,_1)); + fSets.Add ("trace", boost::bind(&TC::SetTraceLevel,pobj,_1)); } //------------------------------------------+----------------------------------- //! FIXME_docs -template -inline RtclRw11CntlBase::~RtclRw11CntlBase() +template +inline RtclRw11CntlBase::~RtclRw11CntlBase() {} //------------------------------------------+----------------------------------- //! FIXME_docs -template -inline TO& RtclRw11CntlBase::Obj() +template +inline TC& RtclRw11CntlBase::Obj() { return *fspObj; } @@ -80,8 +80,8 @@ inline TO& RtclRw11CntlBase::Obj() //------------------------------------------+----------------------------------- //! FIXME_docs -template -inline const boost::shared_ptr& RtclRw11CntlBase::ObjSPtr() +template +inline const boost::shared_ptr& RtclRw11CntlBase::ObjSPtr() { return fspObj; } @@ -89,8 +89,8 @@ inline const boost::shared_ptr& RtclRw11CntlBase::ObjSPtr() //------------------------------------------+----------------------------------- //! FIXME_docs -template -int RtclRw11CntlBase::M_bootcode(RtclArgs& args) +template +int RtclRw11CntlBase::M_bootcode(RtclArgs& args) { int unit = 0; if (!args.GetArg("?unit", unit, 0, Obj().NUnit()-1)) return kERR;