mirror of
https://github.com/nasa/trick.git
synced 2025-01-10 06:52:52 +00:00
14a75508a3
Changed all header file once include variables to follow the same naming convention and not start with any underscores. Also deleted old incorrect copyright notices. Also removed $Id: tags from all files. Fixes #14. Fixes #22.
41 lines
926 B
C++
41 lines
926 B
C++
|
|
#ifndef MESSAGELCOUT_HH
|
|
#define MESSAGELCOUT_HH
|
|
|
|
#include <iostream>
|
|
#include <map>
|
|
#include <stdlib.h>
|
|
#include "sim_services/Message/include/MessageSubscriber.hh"
|
|
|
|
namespace Trick {
|
|
|
|
/**
|
|
* This MessageLCout is a class that inherits from MessageSubscriber.
|
|
* It defines a type of MessageSubscriber with its received message sending to the standard output stream.
|
|
*/
|
|
class MessageLCout : public MessageSubscriber {
|
|
|
|
public:
|
|
/**
|
|
@brief Constructor.
|
|
*/
|
|
MessageLCout() ;
|
|
|
|
/**
|
|
@brief Output header & message to standard output stream.
|
|
*/
|
|
virtual void update( unsigned int level , std::string header , std::string message ) ;
|
|
|
|
private:
|
|
/** Map characters in message to Leet equivalent.\n */
|
|
std::map<char,std::string> subs ;
|
|
|
|
unsigned int seed ;
|
|
|
|
} ;
|
|
|
|
}
|
|
|
|
#endif
|
|
|