VR-Forces 4.7 Class Documentation
 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) 2016 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 { namespace oe { namespace CDB {
17 
19  typedef enum CDBFileType
20  {
22  };
23 
27  class DT_DLL_OSGEARTH_CDB_UTILS DtCDBDatabase : public osg::Referenced
28  {
29  public:
30 
32  DtCDBDatabase(const std::string& rootDir);
34  virtual ~DtCDBDatabase();
35 
36  // like ifstream
37  bool good() const;
38 
39  CdbFile* openFile(const std::string& fileName, CDBFileType fileType);
40  void closeFile(CdbFile* theFile);
41  private:
42 
45  bool myIsGood;
46 
47  CdbDB* db(){ return &myCdbDatabase; }
48 
49  };
50 
51 
52 }}} // namespace mak::osgEarth::CDB

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)