Wyatt  1.0.1
Public Member Functions | List of all members
MockHardwareInterface Class Reference

#include <MockHardwareInterface.h>

Inheritance diagram for MockHardwareInterface:
Inheritance graph
[legend]
Collaboration diagram for MockHardwareInterface:
Collaboration graph
[legend]

Public Member Functions

void write (IMessage *msg)
 
std::list< IMessage * > * read ()
 
void setReadMessages (std::list< IMessage * > *messages)
 
std::list< IMessage * > * getWriteMessages ()
 
- Public Member Functions inherited from IHardwareInterface
virtual ~IHardwareInterface ()
 

Detailed Description

Mock class for a hardware interface that can have hardware messages injected and logs the messages written to it.

Definition at line 13 of file MockHardwareInterface.h.

Member Function Documentation

std::list< IMessage * > * MockHardwareInterface::read ( )
virtual

Read data from the peripheral

Returns
A list of Messages

Implements IHardwareInterface.

Definition at line 17 of file MockHardwareInterface.cpp.

void MockHardwareInterface::write ( IMessage msg)
virtual

Write a message to the peripheral. Deletes the message pointer.

Parameters
msgA Message to be sent

Implements IHardwareInterface.

Definition at line 13 of file MockHardwareInterface.cpp.


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