OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimVpfDatabase.h
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: See top level LICENSE.txt file.
4 //
5 // Author: Garrett Potts (gpotts@imagelinks.com)
6 // Description: This class give the capability to access tiles from an
7 // vpf file.
8 //
9 //********************************************************************
10 // $Id: ossimVpfDatabase.h 9967 2006-11-29 02:01:23Z gpotts $
11 #ifndef ossimVpfDatabase_HEADER
12 #define ossimVpfDatabase_HEADER
13 #include <vector>
14 using namespace std;
15 
18 #include <ossim/base/ossimString.h>
19 
20 class ossimVpfLibrary;
21 
23 {
24 public:
29 
33  virtual ~ossimVpfDatabase();
34 
41  virtual bool openDatabase(const ossimFilename& filename);
42 
43  void closeDatabase();
44  ossimFilename getPath()const;
45 
46  long getNumberOfLibraries()const;
50  ossimVpfLibrary* getLibrary(unsigned long libraryNumber);
51 
55  ossimVpfLibrary* getLibrary(const ossimString& name);
56 
57  bool isOpened()const;
58 
59  vector<ossimString> getLibraryNames()const;
60  vector<ossimString> getLibraryNamesFullPath()const;
61 
62  ossimFilename getLibraryAttributeTable()const;
63 protected:
64 
65  void initializeLibraryList();
66  void deleteLibraryList();
67 
72 
77 
81  vector<ossimVpfLibrary*> theVpfLibraryList;
82 
87 };
88 
89 #endif
ossimFilename theDatabaseHeaderTable
vector< ossimVpfLibrary * > theVpfLibraryList
bool getPath(const ossimString &path, const ossimXmlDocument *xdoc, ossimString &s)
Gets path from doc and initializes string.
ossimFilename theLibraryAttributeTable