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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.7/] [tools/] [src/] [librlink/] [RlinkChannel.hpp] - Blame information for rev 36

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 wfjm
// $Id: RlinkChannel.hpp 492 2013-02-24 22:14:47Z mueller $
2
//
3
// Copyright 2013- 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
// 2013-02-23   492   1.0    Initial version
17
// ---------------------------------------------------------------------------
18
 
19
 
20
/*!
21
  \file
22
  \version $Id: RlinkChannel.hpp 492 2013-02-24 22:14:47Z mueller $
23
  \brief   Declaration of class RlinkChannel.
24
*/
25
 
26
#ifndef included_Retro_RlinkChannel
27
#define included_Retro_RlinkChannel 1
28
 
29
#include "boost/shared_ptr.hpp"
30
 
31
#include "RlinkContext.hpp"
32
#include "RlinkConnect.hpp"
33
#include "RlinkCommandList.hpp"
34
 
35
namespace Retro {
36
 
37
  class RlinkChannel {
38
    public:
39
      explicit      RlinkChannel(const boost::shared_ptr<RlinkConnect>& spconn);
40
                   ~RlinkChannel();
41
 
42
      RlinkConnect& Connect();
43
      RlinkContext& Context();
44
 
45
      bool          Exec(RlinkCommandList& clist, RerrMsg& emsg);
46
 
47
      void          Dump(std::ostream& os, int ind=0, const char* text=0) const;
48
 
49
    protected:
50
      RlinkContext  fContext;               //!< stat check and errcnt context
51
      boost::shared_ptr<RlinkConnect> fspConn; //!< ptr to connect
52
  };
53
 
54
} // end namespace Retro
55
 
56
#include "RlinkChannel.ipp"
57
 
58
#endif

powered by: WebSVN 2.1.0

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