MOOS 0.2375
/home/toby/moos-ivp/MOOS-2375-Oct0611/Docs/ProgrammingWithMOOS/code/Ex4/Simulator.h
Go to the documentation of this file.
00001 // Ex3/Simulator.h: interface for the  class.
00002 
00003 #ifndef SIMULATORH
00004 #define SIMULATORH
00005 
00006 #include <MOOSLIB/MOOSApp.h>
00007 
00008 class CSimulator : public CMOOSApp  
00009 {
00010 public:
00011     //standard construction and destruction
00012     CSimulator();
00013     virtual ~CSimulator();
00014 
00015 protected:
00016     //where we handle new mail
00017     bool OnNewMail(MOOSMSG_LIST &NewMail);
00018     //where we do the work
00019     bool Iterate();
00020     //called when we connect to the server
00021     bool OnConnectToServer();
00022     //called when we are starting up..
00023     bool OnStartUp();
00024 
00025     //these are some variables put here to elucidate
00026     //config file reading
00027     double m_dfBatteryVoltage;
00028     double m_dfHeading;
00029     std::string m_sBilge;
00030     std::string m_sVehicleName;
00031     
00032 
00033 
00034 };
00035 
00036 #endif 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines