svn-gvsig-desktop / trunk / libraries / libjni-readecw-linux / include / NCSGDTLocation.h @ 10630
History | View | Annotate | Download (1.42 KB)
1 |
/******************************************************
|
---|---|
2 |
** Copyright 2005 Earth Resource Mapping Ltd.
|
3 |
** This document contains proprietary source code of
|
4 |
** Earth Resource Mapping Ltd, and can only be used under
|
5 |
** one of the three licenses as described in the
|
6 |
** license.txt file supplied with this distribution.
|
7 |
** See separate license.txt file for license details
|
8 |
** and conditions.
|
9 |
**
|
10 |
** This software is covered by US patent #6,442,298,
|
11 |
** #6,102,897 and #6,633,688. Rights to use these patents
|
12 |
** is included in the license agreements.
|
13 |
**
|
14 |
** FILE: NCSGDTLocation.h
|
15 |
** CREATED: 06 Jan 2005
|
16 |
** AUTHOR: Tom Lynch
|
17 |
** PURPOSE: Establish an application wide way of controlling the location of GDT data
|
18 |
**
|
19 |
** EDITS: [xx] ddMmmyy NAME COMMENTS
|
20 |
** [01] 06Jan05 tfl File first committed
|
21 |
**
|
22 |
*******************************************************/
|
23 |
|
24 |
#ifndef NCSGDTLOCATION_H
|
25 |
#define NCSGDTLOCATION_H
|
26 |
|
27 |
#include "NCSMutex.h" |
28 |
|
29 |
class CNCSGDTLocation |
30 |
{ |
31 |
public:
|
32 |
CNCSGDTLocation() {} |
33 |
~CNCSGDTLocation() {} |
34 |
static void SetPath(const char *szPath); |
35 |
static char *GetPath(); |
36 |
static void SetGuessPath(BOOLEAN bGuessPath) {sm_bGuessPath = bGuessPath;} |
37 |
static BOOLEAN GetGuessPath() {return sm_bGuessPath;} |
38 |
virtual void DetectPath();
|
39 |
|
40 |
protected:
|
41 |
virtual BOOLEAN IsValidPath(const char *szPath) = 0; |
42 |
virtual char *GuessPath();
|
43 |
|
44 |
private:
|
45 |
static char sm_szGDTPath[MAX_PATH]; |
46 |
static CNCSMutex sm_PathMutex;
|
47 |
static BOOLEAN sm_bGuessPath;
|
48 |
}; |
49 |
|
50 |
#endif
|