00001 // 00002 // LdmrsFieldApp.hpp 00003 // 00004 00005 #ifndef LDMRSFIELDAPP_HPP 00006 #define LDMRSFIELDAPP_HPP 00007 00008 #include "../manager.hpp" 00009 #include "../tools/Mutex.hpp" 00010 #include "../devices/LD_MRS.hpp" 00011 00012 namespace application 00013 { 00014 00015 // 00016 // LdmrsApp 00017 // 00018 class LdmrsFieldApp : public BasicApplication 00019 { 00020 public: 00021 LdmrsFieldApp(Manager* manager); 00022 virtual ~LdmrsFieldApp(); 00023 00024 protected: 00025 void setData(BasicData& data); // Receiver 00026 00027 private: 00028 bool m_beVerbose; 00029 Manager* m_manager; 00030 void changeThreadFunction(bool& endThread, UINT16& waitTimeMs); 00031 SickThread<LdmrsFieldApp, &LdmrsFieldApp::changeThreadFunction> m_changeThread; 00032 00033 void thread_removeAllFields(devices::LDMRS* ldmrs); 00034 void thread_createRectangularField(devices::LDMRS* ldmrs); 00035 void thread_removeAllEvalCases(devices::LDMRS* ldmrs); 00036 void thread_createEvalCase(devices::LDMRS* ldmrs); 00037 }; 00038 00039 } // namespace application 00040 00041 #endif