1 #ifndef _AREA_H_ 2 #define _AREA_H_ 3 #include <vector> 4 #include <string> 5 #ifdef IS_NOTGCC 6 #include <stdio.h> 7 #else 8 #include <cstdio> 9 #endif 10 #include "mask.h" 11 #include "op.h" 12 #include "action.h" 13 extern "C" 14 { 15 #include <smapi/msgapi.h> 16 } 17 18 19 20 int initApi(); 21 int closeApi(); 22 23 class CArea 24 { 25 public: 26 /* methods */ 27 int Open(string Path); 28 int Open(); 29 int Close(); 30 int Scan(vector<COperation> M_ScanFor, vector<CAction> Execute, unsigned int start, unsigned int stop); 31 HAREA GetArea(); 32 CArea(); 33 CArea(const CArea& ar); 34 ~CArea(); 35 /* variables */ 36 string s_Path; 37 dword i_msgNum; 38 dword i_type; 39 protected: 40 HAREA a_Area; 41 }; 42 #endif 43