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

Subversion Repositories w11

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

Details | Compare with Previous | View Log

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