00001 // OutputDetector.h: interface for the Detector class. 00002 // 00004 00005 #if !defined(AFX_DETECTOR_H__F90280E9_BFD2_40CF_A999_86FF1E9DDE15__INCLUDED_) 00006 #define AFX_DETECTOR_H__F90280E9_BFD2_40CF_A999_86FF1E9DDE15__INCLUDED_ 00007 00008 #if _MSC_VER > 1000 00009 #pragma once 00010 #endif // _MSC_VER > 1000 00011 00012 #include "stdafx.h" 00013 #include "Detector.h" 00014 #include "CASTORFile.h" 00015 #include "SAFTFile.h" 00016 00019 class OutputDetector : public Detector 00020 { 00021 public: 00022 00023 OutputDetector(int loc, bool DirPos, FileHandler* fh); 00024 virtual ~OutputDetector(); 00025 00026 void setFileHandler(FileHandler* fh); 00027 void WriteVehiclesToFile(); 00028 std::vector<Vehicle*> getVehicles(); 00029 void addVehicle(Vehicle* pVeh, double curTime); 00030 00031 private: 00032 void clear(); 00033 FileHandler* m_pFileHandler; 00034 00035 }; 00036 00037 #endif // !defined(AFX_DETECTOR_H__F90280E9_BFD2_40CF_A999_86FF1E9DDE15__INCLUDED_)