00001 // StatDetector.h: interface for the CStatDetector class. 00002 // 00004 00005 #if !defined(AFX_STATDETECTOR_H__09E4D8B1_AFFB_46DA_B96A_5AC5192CA1EE__INCLUDED_) 00006 #define AFX_STATDETECTOR_H__09E4D8B1_AFFB_46DA_B96A_5AC5192CA1EE__INCLUDED_ 00007 00008 #if _MSC_VER > 1000 00009 #pragma once 00010 #endif // _MSC_VER > 1000 00011 00012 #include <string> 00013 00016 class CStatDetector : public CObject 00017 { 00018 DECLARE_SERIAL (CStatDetector) 00019 00020 public: 00021 CStatDetector(); 00022 virtual ~CStatDetector(); 00023 00024 void Serialize(CArchive &ar); 00025 00026 // the gets 00027 std::string getStdStrMetricsDir(); 00028 WORD getDetectorType(); 00029 bool getDirPos(); 00030 WORD getVehicleType(); 00031 int getTimeInterval(); 00032 int getLocation(); 00033 00034 // the sets 00035 void setMetricsDir(CString dir); 00036 void setDetectorType(WORD type); 00037 void setDirPos(bool dirpos); 00038 void setVehicleType(WORD type); 00039 void setTimeInterval(int interval); 00040 void setLocation(int loc); 00041 00042 private: 00043 CString m_MetricsDir; 00044 WORD m_DetectorType; 00045 bool m_DirPos; 00046 WORD m_VehicleType; 00047 int m_TimeInterval; 00048 int m_Location; 00049 }; 00050 00051 #endif // !defined(AFX_STATDETECTOR_H__09E4D8B1_AFFB_46DA_B96A_5AC5192CA1EE__INCLUDED_)