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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [src/] [librlink/] [RlinkContext.cpp] - Blame information for rev 19

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

Line No. Rev Author Line
1 19 wfjm
// $Id: RlinkContext.cpp 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
  \file
21
  \version $Id: RlinkContext.cpp 492 2013-02-24 22:14:47Z mueller $
22
  \brief   Implemenation of class RlinkContext.
23
 */
24
 
25
#include "librtools/RosFill.hpp"
26
#include "librtools/RosPrintf.hpp"
27
#include "librtools/RosPrintBvi.hpp"
28
 
29
#include "RlinkContext.hpp"
30
 
31
using namespace std;
32
 
33
/*!
34
  \class Retro::RlinkContext
35
  \brief FIXME_docs
36
*/
37
 
38
// all method definitions in namespace Retro
39
namespace Retro {
40
 
41
//------------------------------------------+-----------------------------------
42
//! Default constructor
43
 
44
RlinkContext::RlinkContext()
45
  : fStatusVal(0),
46
    fStatusMsk(0xff),
47
    fErrCnt(0)
48
{}
49
 
50
//------------------------------------------+-----------------------------------
51
//! Destructor
52
 
53
RlinkContext::~RlinkContext()
54
{}
55
 
56
//------------------------------------------+-----------------------------------
57
//! FIXME_docs
58
 
59
void RlinkContext::Dump(std::ostream& os, int ind, const char* text) const
60
{
61
  RosFill bl(ind);
62
  os << bl << (text?text:"--") << "RlinkContext @ " << this << endl;
63
 
64
  os << bl << "  fStatusVal:     " << RosPrintBvi(fStatusVal,0) << endl;
65
  os << bl << "  fStatusMsk:     " << RosPrintBvi(fStatusMsk,0) << endl;
66
  os << bl << "  fErrCnt:        " << RosPrintf((int)fErrCnt,"d") << endl;
67
  return;
68
}
69
 
70
} // end namespace Retro

powered by: WebSVN 2.1.0

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