You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

62 regels
2.5 KiB

  1. /*******************************************************************************
  2. * *
  3. * Société de Transports de Montréal. *
  4. * 2012 - 2013 *
  5. * *
  6. * Projet Zones Tests *
  7. * *
  8. * *
  9. * *
  10. *******************************************************************************/
  11. /*
  12. Description:
  13. Description du fichier si nécessaire.
  14. */
  15. /* ************************************************************************** */
  16. /* Revision:
  17. ### YYYMMDD JFM
  18. Verision d'origine.
  19. ### YYYYMMDD Description du besoin ou du bug
  20. Description du changement.
  21. */
  22. /* ************************************************************************** */
  23. #ifndef TRAINLOGFILEMGR_H
  24. #define TRAINLOGFILEMGR_H
  25. #include "GlobalDefine.h"
  26. #include "ZTData.h"
  27. class CLogElement;
  28. class CTrainLogFileMgr
  29. {
  30. public:
  31. //CTrainLogFileMgr is a singleton class
  32. static CTrainLogFileMgr* instance(){return &mSingleton;}
  33. static CTrainLogFileMgr mSingleton;
  34. CTrainLogFileMgr();
  35. unsigned int SaveTrainLog(QString LogFilePathName,CZT1Log *ZT1Log,QVector<CZTDetectionData*> *ZT1DetectionsLog,QString StationName);
  36. unsigned int SaveTrainLog(QString LogFilePathName,QVector<CZT2LogData*> *ZT2Log,QVector<CZTDetectionData*> *ZT2DetectionsLog,QString StationName);
  37. CLogElement *OpenTrainLog(QString LogFilePathName,unsigned int &RetValue,CLogElement *TargetElement = 0,bool LoadData = false);
  38. unsigned int SaveCSVFile(QString CSVFilePathName,QVector<CZT1LogData*> *ZT1Log,CZT1FlagsData *ZT1Flags,QVector<CZTDetectionData*> *ZT1DetectionsLog, QString StationName);
  39. unsigned int SaveCSVFile(QString CSVFilePathName,CZT1Log *ZT1Log,QVector<CZTDetectionData*> *ZT1DetectionsLog, QString StationName);
  40. unsigned int SaveCSVFile(QString CSVFilePathName,QVector<CZT2LogData*> *ZT2Log,QVector<CZTDetectionData*> *ZT2DetectionsLog, QString StationName);
  41. unsigned int SetTrainLogProtected(bool IsProtected,QString LogFilePathName);
  42. unsigned int SaveBINFromCSV(QString CSVFilePathName);
  43. };
  44. #endif // TRAINLOGFILEMGR_H