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
}
 
typedef std::vector
< std::unique_ptr
< DiskContainer > > 
Drives
 

Public Member Functions

 NowindHost (const 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 Typedef Documentation

typedef std::vector<std::unique_ptr<DiskContainer> > openmsx::NowindHost::Drives

Definition at line 20 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 49 of file NowindHost.hh.

Constructor & Destructor Documentation

openmsx::NowindHost::NowindHost ( const 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
inline

Definition at line 40 of file NowindHost.hh.

bool openmsx::NowindHost::getEnablePhantomDrives ( ) const
inline

Definition at line 43 of file NowindHost.hh.

bool openmsx::NowindHost::isDataAvailable ( ) const

Definition at line 63 of file NowindHost.cc.

References cb_queue< T >::empty().

Referenced by peek(), and read().

byte openmsx::NowindHost::peek ( ) const

Definition at line 52 of file NowindHost.cc.

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

Referenced by openmsx::NowindInterface::peekMem().

byte openmsx::NowindHost::read ( )

Definition at line 58 of file NowindHost.cc.

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

Referenced by openmsx::NowindInterface::readMem().

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

Definition at line 782 of file NowindHost.cc.

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

Definition at line 39 of file NowindHost.hh.

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

Definition at line 42 of file NowindHost.hh.

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

Member Data Documentation

unsigned openmsx::NowindHost::fcb

Definition at line 113 of file NowindHost.hh.

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

Definition at line 112 of file NowindHost.hh.


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