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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.7/] [tools/] [src/] [librw11/] [Rw11Unit.cpp] - Blame information for rev 33

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 wfjm
// $Id: Rw11Unit.cpp 680 2015-05-14 13:29:46Z mueller $
2 19 wfjm
//
3 30 wfjm
// Copyright 2013-2015 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4 19 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 30 wfjm
// 2015-05-13   680   1.1.1  add Enabled()
17 21 wfjm
// 2013-05-03   515   1.1    use AttachDone(),DetachCleanup(),DetachDone()
18 19 wfjm
// 2013-03-06   495   1.0    Initial version
19
// 2013-02-13   488   0.1    First draft
20
// ---------------------------------------------------------------------------
21
 
22
/*!
23
  \file
24 30 wfjm
  \version $Id: Rw11Unit.cpp 680 2015-05-14 13:29:46Z mueller $
25 19 wfjm
  \brief   Implemenation of Rw11Unit.
26
*/
27
 
28
#include "librtools/RosFill.hpp"
29
 
30
#include "Rw11Unit.hpp"
31
 
32
using namespace std;
33
 
34
/*!
35
  \class Retro::Rw11Unit
36
  \brief FIXME_docs
37
*/
38
 
39
// all method definitions in namespace Retro
40
namespace Retro {
41
 
42
//------------------------------------------+-----------------------------------
43
//! Constructor
44
 
45
Rw11Unit::Rw11Unit(Rw11Cntl* pcntl, size_t index)
46
  : fpCntlBase(pcntl),
47
    fIndex(index),
48 21 wfjm
    fAttachOpts(),
49 19 wfjm
    fStats()
50
{}
51
 
52
//------------------------------------------+-----------------------------------
53
//! Destructor
54
 
55
Rw11Unit::~Rw11Unit()
56
{}
57
 
58
//------------------------------------------+-----------------------------------
59
//! FIXME_docs
60
 
61 30 wfjm
bool Rw11Unit::Enabled() const
62
{
63
  return true;
64
}
65
 
66
//------------------------------------------+-----------------------------------
67
//! FIXME_docs
68
 
69 19 wfjm
bool Rw11Unit::Attach(const std::string& url, RerrMsg& emsg)
70
{
71
  emsg.Init("Rw11Unit::Attach","attach not available for this device type");
72
  return false;
73
}
74
 
75
//------------------------------------------+-----------------------------------
76
//! FIXME_docs
77
 
78
void Rw11Unit::Detach()
79
{
80
  return;
81
}
82
 
83
//------------------------------------------+-----------------------------------
84
//! FIXME_docs
85
 
86
void Rw11Unit::Dump(std::ostream& os, int ind, const char* text) const
87
{
88
  RosFill bl(ind);
89
  os << bl << (text?text:"--") << "Rw11Unit @ " << this << endl;
90
 
91
  os << bl << "  fIndex:          " << fIndex << endl;
92 21 wfjm
  os << bl << "  fAttachOpts:     " << fAttachOpts << endl;
93 19 wfjm
  fStats.Dump(os, ind+2, "fStats: ");
94
  return;
95
}
96
 
97
//------------------------------------------+-----------------------------------
98
//! FIXME_docs
99
 
100 21 wfjm
void Rw11Unit::AttachDone()
101 19 wfjm
{}
102
 
103
//------------------------------------------+-----------------------------------
104
//! FIXME_docs
105
 
106
void Rw11Unit::DetachCleanup()
107
{}
108
 
109 21 wfjm
//------------------------------------------+-----------------------------------
110
//! FIXME_docs
111
 
112
void Rw11Unit::DetachDone()
113
{}
114
 
115 19 wfjm
} // end namespace Retro

powered by: WebSVN 2.1.0

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