My Project
ICGenManager.h
1 #pragma once
2 
3 
4 #define MAX_GEN_TRACEDATA_NUMBER 30000
5 namespace ParaInfoCenter
6 {
7  class CICGen;
8  class CICRecordSet;
9  class DBEntity;
10  //the CICGenManager is a singleton
12  {
13  public:
14  static CICGenManager *Instance();
15  static wstring QuoteReplace(const WCHAR* input);
16  void Finalize();
17  void Open();
18  void Close();
19  //gets all trace
20  CICRecordSet *GetMapTrace();
21  //gets the where defined trace
22  CICRecordSet *GetMapTrace(const WCHAR* where);
23  //gets data at (x,y)'s block
24  CICRecordSet *GetTraceData(double x, double y);
25  //gets data at all blocks in rectangle (x1,y1)-(x2,y2), x1<x2, y1<y2
26  CICRecordSet *GetTraceData(double x1,double y1,double x2, double y2);
27  ~CICGenManager();
28  DBEntity* GetDB(){
29  return m_db.get();
30  };
31  protected:
32  CICGenManager();
33  void CreateMemTables();
34  void CreateFileTables();
35  ParaEngine::asset_ptr<DBEntity> m_db;
36  };
37 }
Definition: ICGenManager.h:11
ParaInfoCenter::DBEntity DBEntity
database entity
Definition: ParaDatabase.h:13
Definition: PEtypes.h:503
a single database file.
Definition: ICDBManager.h:39
CICRecordSet is both the result and wrapper of a sql statement(procedure).
Definition: ICRecordSet.h:90