2015-03-23 21:03:14 +00:00
|
|
|
/*
|
|
|
|
PURPOSE:
|
|
|
|
(Playback messages)
|
2015-02-26 15:02:31 +00:00
|
|
|
*/
|
|
|
|
|
2015-03-23 21:03:14 +00:00
|
|
|
#ifndef PLAYBACKFILE_HH
|
|
|
|
#define PLAYBACKFILE_HH
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <iostream>
|
|
|
|
#include <fstream>
|
|
|
|
#include "sim_services/Message/include/MessageFile.hh"
|
|
|
|
|
|
|
|
namespace Trick {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This PlaybackFile is a class that inherits from MessageFile.
|
|
|
|
* It defines a type of MessageSubscriber with its received message sending to a file.
|
|
|
|
*/
|
|
|
|
class PlaybackFile : public MessageFile {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
PlaybackFile() ;
|
|
|
|
|
|
|
|
/**
|
|
|
|
@brief Output message to the file.
|
|
|
|
*/
|
|
|
|
virtual void update( unsigned int level , std::string header , std::string message ) ;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|