// $Id: Rw11Virt.hpp 495 2013-03-06 17:13:48Z mueller $
|
// $Id: Rw11Virt.hpp 495 2013-03-06 17:13:48Z 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-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: Rw11Virt.hpp 495 2013-03-06 17:13:48Z mueller $
|
\version $Id: Rw11Virt.hpp 495 2013-03-06 17:13:48Z mueller $
|
\brief Declaration of class Rw11Virt.
|
\brief Declaration of class Rw11Virt.
|
*/
|
*/
|
|
|
#ifndef included_Retro_Rw11Virt
|
#ifndef included_Retro_Rw11Virt
|
#define included_Retro_Rw11Virt 1
|
#define included_Retro_Rw11Virt 1
|
|
|
#include <string>
|
#include <string>
|
#include <iostream>
|
#include <iostream>
|
|
|
#include "boost/utility.hpp"
|
#include "boost/utility.hpp"
|
|
|
#include "librtools/RparseUrl.hpp"
|
#include "librtools/RparseUrl.hpp"
|
#include "librtools/RerrMsg.hpp"
|
#include "librtools/RerrMsg.hpp"
|
#include "librtools/Rstats.hpp"
|
#include "librtools/Rstats.hpp"
|
#include "Rw11Unit.hpp"
|
#include "Rw11Unit.hpp"
|
|
|
namespace Retro {
|
namespace Retro {
|
|
|
class Rw11Virt : private boost::noncopyable {
|
class Rw11Virt : private boost::noncopyable {
|
public:
|
public:
|
explicit Rw11Virt(Rw11Unit* punit);
|
explicit Rw11Virt(Rw11Unit* punit);
|
virtual ~Rw11Virt();
|
virtual ~Rw11Virt();
|
|
|
Rw11Unit& Unit() const;
|
Rw11Unit& Unit() const;
|
Rw11Cntl& Cntl() const;
|
Rw11Cntl& Cntl() const;
|
Rw11Cpu& Cpu() const;
|
Rw11Cpu& Cpu() const;
|
Rw11& W11() const;
|
Rw11& W11() const;
|
RlinkServer& Server() const;
|
RlinkServer& Server() const;
|
RlogFile& LogFile() const;
|
RlogFile& LogFile() const;
|
|
|
virtual bool Open(const std::string& url, RerrMsg& emsg) = 0;
|
virtual bool Open(const std::string& url, RerrMsg& emsg) = 0;
|
|
|
const Rstats& Stats() const;
|
const Rstats& Stats() const;
|
|
|
virtual void Dump(std::ostream& os, int ind=0, const char* text=0) const;
|
virtual void Dump(std::ostream& os, int ind=0, const char* text=0) const;
|
|
|
// statistics counter indices
|
// statistics counter indices
|
enum stats {
|
enum stats {
|
kDimStat = 0
|
kDimStat = 0
|
};
|
};
|
|
|
protected:
|
protected:
|
Rw11Unit* fpUnit; //<! back ref to unit
|
Rw11Unit* fpUnit; //<! back ref to unit
|
RparseUrl fUrl;
|
RparseUrl fUrl;
|
Rstats fStats; //!< statistics
|
Rstats fStats; //!< statistics
|
};
|
};
|
|
|
} // end namespace Retro
|
} // end namespace Retro
|
|
|
#include "Rw11Virt.ipp"
|
#include "Rw11Virt.ipp"
|
|
|
#endif
|
#endif
|
|
|