VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DTCDBDatabase.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 #pragma once
10 
12 #include <osg/Referenced>
13 
14 #include <Cee_CdbDB.h>
15 
16 namespace makVrv
17 {
18  namespace oe
19  {
20  namespace CDB
21  {
22 
25  {
27  };
28 
32  class DT_DLL_OSGEARTH_CDB_UTILS DtCDBDatabase : public osg::Referenced
33  {
34  public:
35 
37  DtCDBDatabase(const std::string& rootDir);
39  virtual ~DtCDBDatabase();
40 
42  bool good() const;
43 
44  CdbFile* openFile(const std::string& fileName, CDBFileType fileType);
45 
46  void closeFile(CdbFile* theFile);
47 
48  protected:
49  CdbDB* db();
50 
51  protected:
52 
55  bool myIsGood;
56 
57 
58  };
59  }
60  }
61 } // namespace mak::osgEarth::CDB
bool myIsGood
Definition: DTCDBDatabase.h:55
Definition: DTCDBDatabase.h:26
#define DT_DLL_OSGEARTH_CDB_UTILS
Definition: DtCDBExport.h:18
Definition: DTCDBDatabase.h:26
CDBFileType
CDB file type supported by the API (FileType_Vector = 0, FileType_Raster, FileType_Container) ...
Definition: DTCDBDatabase.h:24
Definition: DTCDBDatabase.h:26
CDB Database class. Manage the open/close of a CDB database used by the osgDB_zipcdb and osgdb_osgear...
Definition: DTCDBDatabase.h:32
CdbDB myCdbDatabase
CDB database object.
Definition: DTCDBDatabase.h:54

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)