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 (EmuTime::param time, std::span< const TclObject > tokens)
 
const auto & 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 21 of file RecordedCommand.hh.

Constructor & Destructor Documentation

◆ MSXCommandEvent() [1/2]

openmsx::MSXCommandEvent::MSXCommandEvent ( )
default

◆ MSXCommandEvent() [2/2]

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

Definition at line 90 of file RecordedCommand.cc.

Member Function Documentation

◆ getTokens()

const auto & openmsx::MSXCommandEvent::getTokens ( ) const
inline

Definition at line 26 of file RecordedCommand.hh.

◆ serialize()

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

Definition at line 97 of file RecordedCommand.cc.

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


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