URL
https://opencores.org/ocsvn/w11/w11/trunk
Subversion Repositories w11
[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [src/] [librlink/] [RlinkConnect.ipp] - Rev 36
Go to most recent revision | Compare with Previous | Blame | View Log
// $Id: RlinkConnect.ipp 495 2013-03-06 17:13:48Z mueller $
//
// Copyright 2011-2013 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
//
// 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
// Software Foundation, either version 2, or at your option any later version.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
// for complete details.
//
// Revision History:
// Date Rev Version Comment
// 2013-03-05 495 1.2.1 add Exec() without emsg (will send emsg to LogFile)
// 2013-02-23 492 1.2 use scoped_ptr for Port; Close allways allowed
// use RlinkContext, add Context(), Exec(..., cntx)
// 2013-02-22 491 1.1 use new RlogFile/RlogMsg interfaces
// 2013-02-03 481 1.0.1 add SetServer(),Server()
// 2011-04-02 375 1.0 Initial version
// 2011-01-15 356 0.1 First draft
// ---------------------------------------------------------------------------
/*!
\file
\version $Id: RlinkConnect.ipp 495 2013-03-06 17:13:48Z mueller $
\brief Implemenation (inline) of RlinkConnect.
*/
// all method definitions in namespace Retro
namespace Retro {
//------------------------------------------+-----------------------------------
//! FIXME_docs
inline bool RlinkConnect::IsOpen() const
{
return fpPort && fpPort->IsOpen();
}
//------------------------------------------+-----------------------------------
//! FIXME_docs
inline RlinkPort* RlinkConnect::Port() const
{
return fpPort.get();
}
//------------------------------------------+-----------------------------------
//! FIXME_docs
inline RlinkContext& RlinkConnect::Context()
{
return fContext;
}
//------------------------------------------+-----------------------------------
//! FIXME_docs
inline void RlinkConnect::SetServer(RlinkServer* pserv)
{
fpServ = pserv;
return;
}
//------------------------------------------+-----------------------------------
//! FIXME_docs
inline RlinkServer* RlinkConnect::Server() const
{
return fpServ;
}
//------------------------------------------+-----------------------------------
//! FIXME_docs
inline bool RlinkConnect::Exec(RlinkCommandList& clist, RerrMsg& emsg)
{
return Exec(clist, fContext, emsg);
}
//------------------------------------------+-----------------------------------
//! FIXME_docs
inline bool RlinkConnect::Exec(RlinkCommandList& clist)
{
return Exec(clist, fContext);
}
//------------------------------------------+-----------------------------------
//! FIXME_docs
inline bool RlinkConnect::AddrMapInsert(const std::string& name, uint16_t addr)
{
return fAddrMap.Insert(name, addr);
}
//------------------------------------------+-----------------------------------
//! FIXME_docs
inline bool RlinkConnect::AddrMapErase(const std::string& name)
{
return fAddrMap.Erase(name);
}
//------------------------------------------+-----------------------------------
//! FIXME_docs
inline bool RlinkConnect::AddrMapErase(uint16_t addr)
{
return fAddrMap.Erase(addr);
}
//------------------------------------------+-----------------------------------
//! FIXME_docs
inline void RlinkConnect::AddrMapClear()
{
return fAddrMap.Clear();
}
//------------------------------------------+-----------------------------------
//! FIXME_docs
inline const RlinkAddrMap& RlinkConnect::AddrMap() const
{
return fAddrMap;
}
//------------------------------------------+-----------------------------------
//! FIXME_docs
inline const Rstats& RlinkConnect::Stats() const
{
return fStats;
}
//------------------------------------------+-----------------------------------
//! FIXME_docs
inline const RlinkConnect::LogOpts& RlinkConnect::GetLogOpts() const
{
return fLogOpts;
}
//------------------------------------------+-----------------------------------
//! FIXME_docs
inline RlogFile& RlinkConnect::LogFile() const
{
return *fspLog;
}
//------------------------------------------+-----------------------------------
//! FIXME_docs
inline const boost::shared_ptr<RlogFile>& RlinkConnect::LogFileSPtr() const
{
return fspLog;
}
} // end namespace Retro
Go to most recent revision | Compare with Previous | Blame | View Log