VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
appPathResolver.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include "vrfutil/vrfutilDefines.h"
12 
13 #include "vlutil/vlString.h"
14 #include "vlutil/vlFilename.h"
15 
16 #include <string>
17 
18 namespace makVrf
19 {
22  {
23  public:
24  static DtAppPathResolver& Instance();
25 
26  void setDataPath(const DtFilename& dataPath);
27  void setAppDataPath(const DtFilename& appDataPath);
28  void setUserDataPath(const DtFilename& userDataPath);
29 
30  DtFilename dataPath();
31  DtFilename appDataPath();
32  DtFilename userDataPath();
33 
34  void setAdditionalModelDefinitionPaths(const std::vector<DtFilename>&);
35  const std::vector<DtFilename>& additionalModelDefinitionPaths() const;
36 
38  virtual DtString resolvePath(const DtString& path);
39 
41  virtual DtString markupPath(const DtString& path);
42 
43  protected:
45 
46  DtFilename myDataPath;
47  DtFilename myAppDataPath;
48  DtFilename myUserDataPath;
49  std::vector<DtFilename> myAdditonalModelDefinitionPaths;
50  };
51 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)