5 #include "include/MockHardwareInterface.h" 8 MockHardwareInterface::MockHardwareInterface() {
9 this->writeMessages =
new std::list<IMessage*>;
14 this->writeMessages->push_back(msg);
18 if(this->isSet == 0) {
19 return new std::list<IMessage*>;
22 return this->readMessages;
26 void MockHardwareInterface::setReadMessages(std::list<IMessage*>* messages) {
28 this->readMessages = messages;
31 std::list<IMessage*>* MockHardwareInterface::getWriteMessages(){
32 if(this->writeMessages == NULL) {
33 return new std::list<IMessage*>;
35 return this->writeMessages;
std::list< IMessage * > * read()
void write(IMessage *msg)