MOOS 0.2375
|
00001 // Ex2/SimpleApp.h: interface for the CSimpleApp class. 00002 00003 #ifndef SIMPLEAPPH 00004 #define SIMPLEAPPH 00005 00006 #include <MOOSLIB/MOOSApp.h> 00007 00008 class CSimpleApp : public CMOOSApp 00009 { 00010 public: 00011 //standard construction and destruction 00012 CSimpleApp(); 00013 virtual ~CSimpleApp(); 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 00026 00027 //state our interest in variables 00028 void DoRegistrations(); 00029 00030 //we'll call this if/when we receive a vehicle status message 00031 bool OnVehicleStatus(CMOOSMsg & Msg); 00032 00033 //we'll call this if/when we receive a heading message 00034 bool OnHeading(CMOOSMsg & Msg); 00035 00036 00037 }; 00038 00039 #endif