VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgFileCacheUtil.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
15 
16 #include <boost/filesystem.hpp>
17 
18 #include <string>
19 
20 
21 namespace makVrv
22 {
23 
27  {
28  public:
29 
32 
34  virtual ~DtOsgFileCacheUtil();
35 
36  static void getAbsolutePath(std::string& msFilename, const std::string& fromFile);
37 
38  static boost::filesystem::path resolve(
39  const boost::filesystem::path& p);
40 
41  static boost::filesystem::path resolve(
42  const boost::filesystem::path& p,
43  const boost::filesystem::path& base);
44 
46  static std::string ts_buildAcceleratedFilename(const std::string& filePathIn,
47  const std::string& cacheDir,
48  const std::string& cachedExtension,
49  bool isCDB,
50  const std::string& zipCdbFile,
51  bool cacheCDB,
52  const std::string& zipTextureName);
53 
55  static bool isTerraPage(const std::string& inputExtension, const std::string& secondaryExtension)
56  {
57  if ((inputExtension == DtFileExtensions::theTerraPageExtension) ||
58  (inputExtension == DtFileExtensions::theTerraPagePageExtension) ||
59  (inputExtension == DtFileExtensions::theTerraPageFileExtension) ||
60  (secondaryExtension == DtFileExtensions::theTerraPageExtension) ||
61  (secondaryExtension == DtFileExtensions::theTerraPagePageExtension) ||
62  (secondaryExtension == DtFileExtensions::theTerraPageFileExtension))
63  {
64  return true;
65  }
66  else
67  {
68  return false;
69  }
70  }
71 
72  };
73 }
Definition: DtOsgFileCacheUtil.h:26
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
static const char * theTerraPagePageExtension
Definition: DtFileExtensions.h:29
static bool isTerraPage(const std::string &inputExtension, const std::string &secondaryExtension)
check if the file extension are TerraPage extension
Definition: DtOsgFileCacheUtil.h:55
static const char * theTerraPageFileExtension
Definition: DtFileExtensions.h:28
Contains file extensions that DtOsgFileCache/Vantage refers to.
Contains DLL export macros.
static const char * theTerraPageExtension
Extensions.
Definition: DtFileExtensions.h:27

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)