openMSX
Public Member Functions | List of all members
openmsx::MSXCommandEvent Class Referencefinal

This class is used to for Tcl commands that directly influence the MSX state (e.g. More...

#include <RecordedCommand.hh>

Inheritance diagram for openmsx::MSXCommandEvent:
Inheritance graph
[legend]
Collaboration diagram for openmsx::MSXCommandEvent:
Collaboration graph
[legend]

Public Member Functions

 MSXCommandEvent ()=default
 
 MSXCommandEvent (span< std::string > tokens, EmuTime::param time)
 
 MSXCommandEvent (span< const TclObject > tokens, EmuTime::param time)
 
const std::vector< TclObject > & getTokens () const
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 
- Public Member Functions inherited from openmsx::StateChange
virtual ~StateChange ()=default
 
EmuTime::param getTime () const
 
template<typename Archive >
void serialize (Archive &ar, unsigned)
 

Additional Inherited Members

- Protected Member Functions inherited from openmsx::StateChange
 StateChange ()
 
 StateChange (EmuTime::param time_)
 

Detailed Description

This class is used to for Tcl commands that directly influence the MSX state (e.g.

plug, disk<x>, cassetteplayer, reset). It's passed via an event because the recording needs to see these.

Definition at line 20 of file RecordedCommand.hh.

Constructor & Destructor Documentation

◆ MSXCommandEvent() [1/3]

openmsx::MSXCommandEvent::MSXCommandEvent ( )
default

◆ MSXCommandEvent() [2/3]

openmsx::MSXCommandEvent::MSXCommandEvent ( span< std::string >  tokens,
EmuTime::param  time 
)

Definition at line 90 of file RecordedCommand.cc.

◆ MSXCommandEvent() [3/3]

openmsx::MSXCommandEvent::MSXCommandEvent ( span< const TclObject tokens,
EmuTime::param  time 
)

Definition at line 96 of file RecordedCommand.cc.

Member Function Documentation

◆ getTokens()

const std::vector<TclObject>& openmsx::MSXCommandEvent::getTokens ( ) const
inline

Definition at line 26 of file RecordedCommand.hh.

References serialize().

Referenced by openmsx::DiskChanger::getContainerName().

◆ serialize()

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

Definition at line 103 of file RecordedCommand.cc.

References openmsx::REGISTER_POLYMORPHIC_CLASS(), t, to_vector(), and view::transform().

Referenced by getTokens().


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