// $Id: RlinkChannel.hpp 492 2013-02-24 22:14:47Z mueller $
|
// $Id: RlinkChannel.hpp 492 2013-02-24 22:14:47Z mueller $
|
//
|
//
|
// Copyright 2013- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
// Copyright 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
|
// 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.
|
//
|
//
|
// This program is distributed in the hope that it will be useful, but
|
// This program is distributed in the hope that it will be useful, but
|
// WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
|
// WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
|
// 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-23 492 1.0 Initial version
|
// 2013-02-23 492 1.0 Initial version
|
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
|
|
|
|
/*!
|
/*!
|
\file
|
\file
|
\version $Id: RlinkChannel.hpp 492 2013-02-24 22:14:47Z mueller $
|
\version $Id: RlinkChannel.hpp 492 2013-02-24 22:14:47Z mueller $
|
\brief Declaration of class RlinkChannel.
|
\brief Declaration of class RlinkChannel.
|
*/
|
*/
|
|
|
#ifndef included_Retro_RlinkChannel
|
#ifndef included_Retro_RlinkChannel
|
#define included_Retro_RlinkChannel 1
|
#define included_Retro_RlinkChannel 1
|
|
|
#include "boost/shared_ptr.hpp"
|
#include "boost/shared_ptr.hpp"
|
|
|
#include "RlinkContext.hpp"
|
#include "RlinkContext.hpp"
|
#include "RlinkConnect.hpp"
|
#include "RlinkConnect.hpp"
|
#include "RlinkCommandList.hpp"
|
#include "RlinkCommandList.hpp"
|
|
|
namespace Retro {
|
namespace Retro {
|
|
|
class RlinkChannel {
|
class RlinkChannel {
|
public:
|
public:
|
explicit RlinkChannel(const boost::shared_ptr<RlinkConnect>& spconn);
|
explicit RlinkChannel(const boost::shared_ptr<RlinkConnect>& spconn);
|
~RlinkChannel();
|
~RlinkChannel();
|
|
|
RlinkConnect& Connect();
|
RlinkConnect& Connect();
|
RlinkContext& Context();
|
RlinkContext& Context();
|
|
|
bool Exec(RlinkCommandList& clist, RerrMsg& emsg);
|
bool Exec(RlinkCommandList& clist, RerrMsg& emsg);
|
|
|
void Dump(std::ostream& os, int ind=0, const char* text=0) const;
|
void Dump(std::ostream& os, int ind=0, const char* text=0) const;
|
|
|
protected:
|
protected:
|
RlinkContext fContext; //!< stat check and errcnt context
|
RlinkContext fContext; //!< stat check and errcnt context
|
boost::shared_ptr<RlinkConnect> fspConn; //!< ptr to connect
|
boost::shared_ptr<RlinkConnect> fspConn; //!< ptr to connect
|
};
|
};
|
|
|
} // end namespace Retro
|
} // end namespace Retro
|
|
|
#include "RlinkChannel.ipp"
|
#include "RlinkChannel.ipp"
|
|
|
#endif
|
#endif
|
|
|