mirror of
https://github.com/nasa/trick.git
synced 2025-01-23 21:08:02 +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.
50 lines
1.2 KiB
C++
50 lines
1.2 KiB
C++
#ifndef EVENTINSTRUMENT_HH
|
|
#define EVENTINSTRUMENT_HH
|
|
|
|
#include <string>
|
|
#include "sim_services/EventManager/include/Event.hh"
|
|
#include "sim_services/SimObject/include/InstrumentBase.hh"
|
|
#include "sim_services/SimObject/include/JobData.hh"
|
|
|
|
namespace Trick {
|
|
|
|
/**
|
|
This class encapsulates an event into an instrument class. Instrument classes
|
|
may be attached to jobs. When this instrument class is called, the event is
|
|
processed.
|
|
|
|
@author Alex Lin, Danny Strauss
|
|
*/
|
|
|
|
class EventInstrument : public Trick::InstrumentBase {
|
|
|
|
public:
|
|
/**
|
|
@brief constructor that takes an event and the target job it will be attached
|
|
*/
|
|
EventInstrument(Trick::Event * in_event, Trick::JobData * in_target_job) ;
|
|
|
|
/**
|
|
@brief call() routine inherited from InstrumentBase. This class will execute
|
|
the event.
|
|
*/
|
|
virtual int call() ;
|
|
|
|
/**
|
|
@brief returns the event contained in this instrument.
|
|
*/
|
|
Trick::Event * get_event() { return event ; } ;
|
|
|
|
protected:
|
|
|
|
/**
|
|
@brief the event contained in this instrument.
|
|
*/
|
|
Trick::Event * event ;
|
|
|
|
} ;
|
|
|
|
}
|
|
|
|
#endif
|