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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [src/] [librlink/] [RlinkConnect.ipp] - Blame information for rev 25

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

Line No. Rev Author Line
1 19 wfjm
// $Id: RlinkConnect.ipp 495 2013-03-06 17:13:48Z mueller $
2 10 wfjm
//
3 19 wfjm
// Copyright 2011-2013 by Walter F.J. Mueller 
4 10 wfjm
//
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 19 wfjm
// 2013-03-05   495   1.2.1  add Exec() without emsg (will send emsg to LogFile)
17
// 2013-02-23   492   1.2    use scoped_ptr for Port; Close allways allowed
18
//                           use RlinkContext, add Context(), Exec(..., cntx)
19
// 2013-02-22   491   1.1    use new RlogFile/RlogMsg interfaces
20
// 2013-02-03   481   1.0.1  add SetServer(),Server()
21 10 wfjm
// 2011-04-02   375   1.0    Initial version
22
// 2011-01-15   356   0.1    First draft
23
// ---------------------------------------------------------------------------
24
 
25
/*!
26
  \file
27 19 wfjm
  \version $Id: RlinkConnect.ipp 495 2013-03-06 17:13:48Z mueller $
28 10 wfjm
  \brief   Implemenation (inline) of RlinkConnect.
29
*/
30
 
31 19 wfjm
// all method definitions in namespace Retro
32 10 wfjm
namespace Retro {
33
 
34
//------------------------------------------+-----------------------------------
35
//! FIXME_docs
36
 
37
inline bool RlinkConnect::IsOpen() const
38
{
39
  return fpPort && fpPort->IsOpen();
40
}
41
 
42
//------------------------------------------+-----------------------------------
43
//! FIXME_docs
44
 
45
inline RlinkPort* RlinkConnect::Port() const
46
{
47 19 wfjm
  return fpPort.get();
48 10 wfjm
}
49
 
50
//------------------------------------------+-----------------------------------
51
//! FIXME_docs
52
 
53 19 wfjm
inline RlinkContext& RlinkConnect::Context()
54
{
55
  return fContext;
56
}
57
 
58
//------------------------------------------+-----------------------------------
59
//! FIXME_docs
60
 
61
inline void RlinkConnect::SetServer(RlinkServer* pserv)
62
{
63
  fpServ = pserv;
64
  return;
65
}
66
 
67
//------------------------------------------+-----------------------------------
68
//! FIXME_docs
69
 
70
inline RlinkServer* RlinkConnect::Server() const
71
{
72
  return fpServ;
73
}
74
 
75
//------------------------------------------+-----------------------------------
76
//! FIXME_docs
77
inline bool RlinkConnect::Exec(RlinkCommandList& clist, RerrMsg& emsg)
78
{
79
  return Exec(clist, fContext, emsg);
80
}
81
 
82
//------------------------------------------+-----------------------------------
83
//! FIXME_docs
84
inline bool RlinkConnect::Exec(RlinkCommandList& clist)
85
{
86
  return Exec(clist, fContext);
87
}
88
 
89
//------------------------------------------+-----------------------------------
90
//! FIXME_docs
91
 
92 10 wfjm
inline bool RlinkConnect::AddrMapInsert(const std::string& name, uint16_t addr)
93
{
94
  return fAddrMap.Insert(name, addr);
95
}
96
 
97
//------------------------------------------+-----------------------------------
98
//! FIXME_docs
99
 
100
inline bool RlinkConnect::AddrMapErase(const std::string& name)
101
{
102
  return fAddrMap.Erase(name);
103
}
104
 
105
//------------------------------------------+-----------------------------------
106
//! FIXME_docs
107
 
108
inline bool RlinkConnect::AddrMapErase(uint16_t addr)
109
{
110
  return fAddrMap.Erase(addr);
111
}
112
 
113
//------------------------------------------+-----------------------------------
114
//! FIXME_docs
115
 
116
inline void RlinkConnect::AddrMapClear()
117
{
118
  return fAddrMap.Clear();
119
}
120
 
121
//------------------------------------------+-----------------------------------
122
//! FIXME_docs
123
 
124
inline const RlinkAddrMap& RlinkConnect::AddrMap() const
125
{
126
  return fAddrMap;
127
}
128
 
129
//------------------------------------------+-----------------------------------
130
//! FIXME_docs
131
 
132
inline const Rstats& RlinkConnect::Stats() const
133
{
134
  return fStats;
135
}
136
 
137
//------------------------------------------+-----------------------------------
138
//! FIXME_docs
139
 
140
inline const RlinkConnect::LogOpts& RlinkConnect::GetLogOpts() const
141
{
142
  return fLogOpts;
143
}
144
 
145
//------------------------------------------+-----------------------------------
146
//! FIXME_docs
147
 
148
inline RlogFile& RlinkConnect::LogFile() const
149
{
150 19 wfjm
  return *fspLog;
151 10 wfjm
}
152
 
153 19 wfjm
//------------------------------------------+-----------------------------------
154
//! FIXME_docs
155 10 wfjm
 
156 19 wfjm
inline const boost::shared_ptr& RlinkConnect::LogFileSPtr() const
157
{
158
  return fspLog;
159
}
160
 
161
 
162 10 wfjm
} // end namespace Retro

powered by: WebSVN 2.1.0

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