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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.61/] [tools/] [src/] [librw11/] [Rw11Unit.cpp] - Diff between revs 21 and 26

Only display areas with differences | Details | Blame | View Log

Rev 21 Rev 26
// $Id: Rw11Unit.cpp 515 2013-05-04 17:28:59Z mueller $
// $Id: Rw11Unit.cpp 515 2013-05-04 17:28:59Z mueller $
//
//
// Copyright 2013- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
// Copyright 2013- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
//
//
// This program is free software; you may redistribute and/or modify it under
// This program is free software; you may redistribute and/or modify it under
// the terms of the GNU General Public License as published by the Free
// the terms of the GNU General Public License as published by the Free
// Software Foundation, either version 2, or at your option any later version.
// Software Foundation, either version 2, or at your option any later version.
//
//
// This program is distributed in the hope that it will be useful, but
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
// WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
// or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
// or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
// for complete details.
// for complete details.
// 
// 
// Revision History: 
// Revision History: 
// Date         Rev Version  Comment
// Date         Rev Version  Comment
// 2013-05-03   515   1.1    use AttachDone(),DetachCleanup(),DetachDone()
// 2013-05-03   515   1.1    use AttachDone(),DetachCleanup(),DetachDone()
// 2013-03-06   495   1.0    Initial version
// 2013-03-06   495   1.0    Initial version
// 2013-02-13   488   0.1    First draft
// 2013-02-13   488   0.1    First draft
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
 
 
/*!
/*!
  \file
  \file
  \version $Id: Rw11Unit.cpp 515 2013-05-04 17:28:59Z mueller $
  \version $Id: Rw11Unit.cpp 515 2013-05-04 17:28:59Z mueller $
  \brief   Implemenation of Rw11Unit.
  \brief   Implemenation of Rw11Unit.
*/
*/
 
 
#include "librtools/RosFill.hpp"
#include "librtools/RosFill.hpp"
 
 
#include "Rw11Unit.hpp"
#include "Rw11Unit.hpp"
 
 
using namespace std;
using namespace std;
 
 
/*!
/*!
  \class Retro::Rw11Unit
  \class Retro::Rw11Unit
  \brief FIXME_docs
  \brief FIXME_docs
*/
*/
 
 
// all method definitions in namespace Retro
// all method definitions in namespace Retro
namespace Retro {
namespace Retro {
 
 
//------------------------------------------+-----------------------------------
//------------------------------------------+-----------------------------------
//! Constructor
//! Constructor
 
 
Rw11Unit::Rw11Unit(Rw11Cntl* pcntl, size_t index)
Rw11Unit::Rw11Unit(Rw11Cntl* pcntl, size_t index)
  : fpCntlBase(pcntl),
  : fpCntlBase(pcntl),
    fIndex(index),
    fIndex(index),
    fAttachOpts(),
    fAttachOpts(),
    fStats()
    fStats()
{}
{}
 
 
//------------------------------------------+-----------------------------------
//------------------------------------------+-----------------------------------
//! Destructor
//! Destructor
 
 
Rw11Unit::~Rw11Unit()
Rw11Unit::~Rw11Unit()
{}
{}
 
 
//------------------------------------------+-----------------------------------
//------------------------------------------+-----------------------------------
//! FIXME_docs
//! FIXME_docs
 
 
bool Rw11Unit::Attach(const std::string& url, RerrMsg& emsg)
bool Rw11Unit::Attach(const std::string& url, RerrMsg& emsg)
{
{
  emsg.Init("Rw11Unit::Attach","attach not available for this device type");
  emsg.Init("Rw11Unit::Attach","attach not available for this device type");
  return false;
  return false;
}
}
 
 
//------------------------------------------+-----------------------------------
//------------------------------------------+-----------------------------------
//! FIXME_docs
//! FIXME_docs
 
 
void Rw11Unit::Detach()
void Rw11Unit::Detach()
{
{
  return;
  return;
}
}
 
 
//------------------------------------------+-----------------------------------
//------------------------------------------+-----------------------------------
//! FIXME_docs
//! FIXME_docs
 
 
void Rw11Unit::Dump(std::ostream& os, int ind, const char* text) const
void Rw11Unit::Dump(std::ostream& os, int ind, const char* text) const
{
{
  RosFill bl(ind);
  RosFill bl(ind);
  os << bl << (text?text:"--") << "Rw11Unit @ " << this << endl;
  os << bl << (text?text:"--") << "Rw11Unit @ " << this << endl;
 
 
  os << bl << "  fIndex:          " << fIndex << endl;
  os << bl << "  fIndex:          " << fIndex << endl;
  os << bl << "  fAttachOpts:     " << fAttachOpts << endl;
  os << bl << "  fAttachOpts:     " << fAttachOpts << endl;
  fStats.Dump(os, ind+2, "fStats: ");
  fStats.Dump(os, ind+2, "fStats: ");
  return;
  return;
}
}
 
 
//------------------------------------------+-----------------------------------
//------------------------------------------+-----------------------------------
//! FIXME_docs
//! FIXME_docs
 
 
void Rw11Unit::AttachDone()
void Rw11Unit::AttachDone()
{}
{}
 
 
//------------------------------------------+-----------------------------------
//------------------------------------------+-----------------------------------
//! FIXME_docs
//! FIXME_docs
 
 
void Rw11Unit::DetachCleanup()
void Rw11Unit::DetachCleanup()
{}
{}
 
 
//------------------------------------------+-----------------------------------
//------------------------------------------+-----------------------------------
//! FIXME_docs
//! FIXME_docs
 
 
void Rw11Unit::DetachDone()
void Rw11Unit::DetachDone()
{}
{}
 
 
} // end namespace Retro
} // end namespace Retro
 
 

powered by: WebSVN 2.1.0

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