ToolMap
Loading...
Searching...
No Matches
tmdataintegrity.h
1/***************************************************************************
2 tmdataintegrity.h
3 -------------------
4 copyright : (C) 2010 CREALP Lucien Schreiber
5 ***************************************************************************/
6
7/***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef _TMDATAINTEGRITY_H
17#define _TMDATAINTEGRITY_H
18
19// For compilers that support precompilation, includes "wx/wx.h".
20#include <wx/wxprec.h>
21// Include wxWidgets' headers
22#ifndef WX_PRECOMP
23#include <wx/wx.h>
24#endif
25
26#include "projectdefmemory.h"
27
28class DataBaseTM;
29
31 private:
32 DataBaseTM* m_pDB;
33
34 wxString m_QueryTemplateType;
35 wxString m_QueryTemplateAAttrib;
36
37 long m_ErrorType;
38 long m_ErrorAAttrib;
39
40 public:
41 tmDataIntegrity(DataBaseTM* database);
42
44
45 bool HasErrorType(const PRJDEF_LAYERS_TYPE& layertype);
46
47 bool HasErrorAAttrib(long layerindex, const PRJDEF_LAYERS_TYPE& layertype);
48
49 bool CorrectType(const PRJDEF_LAYERS_TYPE& layertype);
50
51 bool CorrectAAttrib(long layerindex, const PRJDEF_LAYERS_TYPE& layertype);
52
53 wxString GetLastError();
54};
55
56#endif
Definition database_tm.h:80
Definition tmdataintegrity.h:30
Storing project properties in memory.