1
0
mirror of https://github.com/wfjm/w11.git synced 2026-01-27 04:42:13 +00:00
Files
wfjm.w11/tools/src/librw11/Rw11Probe.hpp
wfjm 0fe9cd8acc mixed bag of small backend code updates
- RlinkCommand,RlinkCommandList: add move version of methods
- use constructor delegation
- use nullptr
- drop empty destructors for pod-only classes
- RlinkCommand: rename IsBlockExt -> HasBlockExt
- RlinkConnect: add BadPort(); used on all hard port checks
- remove contraproductive moves (-Wpessimizing-move)
- add casts (-Wfloat-conversion, -Wdouble-promotion)
- virtual dtor now outlined to streamline vtable
- make Dump non virtual in some cases (-Wnon-virtual-dtor)
- rename variables in shadow situations (-Wshadow)
2018-12-27 09:04:19 +01:00

62 lines
1.9 KiB
C++

// $Id: Rw11Probe.hpp 1091 2018-12-23 12:38:29Z mueller $
//
// Copyright 2013-2018 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
//
// 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
// Software Foundation, either version 3, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
// for complete details.
//
// Revision History:
// Date Rev Version Comment
// 2018-12-22 1091 1.1.2 Dump() not longer virtual (-Wnon-virtual-dtor fix)
// 2017-04-07 868 1.1.1 Dump(): add detail arg
// 2017-02-04 848 1.1 Keep probe data; add DataInt(), DataRem()
// 2013-03-05 495 1.0 Initial version
// ---------------------------------------------------------------------------
/*!
\file
\brief Declaration of class Rw11Probe.
*/
#ifndef included_Retro_Rw11Probe
#define included_Retro_Rw11Probe 1
namespace Retro {
struct Rw11Probe {
uint16_t fAddr;
bool fProbeInt;
bool fProbeRem;
bool fProbeDone;
bool fFoundInt;
bool fFoundRem;
uint16_t fDataInt;
uint16_t fDataRem;
explicit Rw11Probe(uint16_t addr = 0, bool probeint = false,
bool proberem = false);
bool Found() const;
char IndicatorInt() const;
char IndicatorRem() const;
uint16_t DataInt() const;
uint16_t DataRem() const;
void Dump(std::ostream& os, int ind=0, const char* text=0,
int detail=0) const;
};
} // end namespace Retro
#include "Rw11Probe.ipp"
#endif