openMSX
Public Types | Public Member Functions | List of all members
openmsx::NowindHost Class Reference

#include <NowindHost.hh>

Collaboration diagram for openmsx::NowindHost:
Collaboration graph
[legend]

Public Types

enum  State {
  STATE_SYNC1, STATE_SYNC2, STATE_COMMAND, STATE_DISKREAD,
  STATE_DISKWRITE, STATE_DEVOPEN, STATE_IMAGE, STATE_MESSAGE
}
 

Public Member Functions

 NowindHost (const NowindInterface::Drives &drives)
 
 ~NowindHost ()
 
bool isDataAvailable () const
 
byte read ()
 
byte peek () const
 
void write (byte value, unsigned time)
 
void setAllowOtherDiskroms (bool allow)
 
bool getAllowOtherDiskroms () const
 
void setEnablePhantomDrives (bool enable)
 
bool getEnablePhantomDrives () const
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 

Detailed Description

Definition at line 17 of file NowindHost.hh.

Member Enumeration Documentation

Enumerator
STATE_SYNC1 
STATE_SYNC2 
STATE_COMMAND 
STATE_DISKREAD 
STATE_DISKWRITE 
STATE_DEVOPEN 
STATE_IMAGE 
STATE_MESSAGE 

Definition at line 47 of file NowindHost.hh.

Constructor & Destructor Documentation

openmsx::NowindHost::NowindHost ( const NowindInterface::Drives drives)
explicit

Definition at line 38 of file NowindHost.cc.

openmsx::NowindHost::~NowindHost ( )

Definition at line 48 of file NowindHost.cc.

Member Function Documentation

bool openmsx::NowindHost::getAllowOtherDiskroms ( ) const

Definition at line 57 of file NowindHost.cc.

Referenced by openmsx::NowindCommand::execute().

bool openmsx::NowindHost::getEnablePhantomDrives ( ) const

Definition at line 66 of file NowindHost.cc.

Referenced by openmsx::NowindCommand::execute().

bool openmsx::NowindHost::isDataAvailable ( ) const

Definition at line 83 of file NowindHost.cc.

References cb_queue< T >::empty().

Referenced by peek(), and read().

byte openmsx::NowindHost::peek ( ) const

Definition at line 72 of file NowindHost.cc.

References cb_queue< T >::front(), and isDataAvailable().

byte openmsx::NowindHost::read ( )

Definition at line 78 of file NowindHost.cc.

References isDataAvailable(), and cb_queue< T >::pop_front().

template<typename Archive >
void openmsx::NowindHost::serialize ( Archive &  ar,
unsigned  version 
)

Definition at line 802 of file NowindHost.cc.

void openmsx::NowindHost::setAllowOtherDiskroms ( bool  allow)

Definition at line 53 of file NowindHost.cc.

Referenced by openmsx::NowindCommand::execute().

void openmsx::NowindHost::setEnablePhantomDrives ( bool  enable)

Definition at line 62 of file NowindHost.cc.

Referenced by openmsx::NowindCommand::execute().

void openmsx::NowindHost::write ( byte  value,
unsigned  time 
)

Member Data Documentation

unsigned openmsx::NowindHost::fcb

Definition at line 111 of file NowindHost.hh.

std::unique_ptr<std::fstream> openmsx::NowindHost::fs

Definition at line 110 of file NowindHost.hh.


The documentation for this class was generated from the following files: