My Project
ICMapTrace.h
1 #pragma once
2 
3 #include <string>
4 #include "ICGen.h"
5 
6 namespace ParaInfoCenter
7 {
8  // the recorded map trace in runtime
9  class CICGenMapTrace:public CICGen
10  {
11  public:
13  DWORD m_time; //time when this gen generated, in tick count
20  double m_x,m_y,m_z;
21  wstring m_id; //whose trace is this
22 
24  void GetBlock(int &x, int &y, int &z);
25  virtual void FromDB(CICRecordSet *rs); //get the GEN data from a sql result
26  virtual void ToDB();//insert the GEN data to the db
27  }; //this class should attach to each object we wish to trace
29  {
30  public:
40  int GetAllTrace(CICGenMapTrace *returndata, bool bDesc=true, int nLimit=0);
41 
48  void BeginGettingTrace(bool bBegin=false);
49 
53  void EndGettingTrace();
54 
60  bool GetTrace(CICGenMapTrace &maptrace);
61 
67  bool SeekTrace(int index);
68 
69  void AddTrace(double x,double y, double z, const WCHAR* id);
70  void DisplayTrace();
72  void DelTrace(DWORD nTime);
73  CICMapTrace();
74  ~CICMapTrace();
75  protected:
76  CICGenMapTrace *m_lasttrace;
77  int m_nCursor;
78  bool m_bASC;
79  int m_nLowerWindow;
80  CICRecordSet *m_recordSet;
81  private:
82  };
83 }
Definition: ICMapTrace.h:28
void GetBlock(int &x, int &y, int &z)
Get the logic block coordinates of the GEN.
double m_x
Coordinates of this gen in the current map The means are different from the coordinates of the CBaseO...
Definition: ICMapTrace.h:20
Definition: ICMapTrace.h:9
Definition: PEtypes.h:503
Definition: ICGen.h:11
CICRecordSet is both the result and wrapper of a sql statement(procedure).
Definition: ICRecordSet.h:90