11#ifndef RUNENVMANAGER_HPP
12#define RUNENVMANAGER_HPP
23class UtDynamicLibrary;
30 static bool Initialize(
const UtPath& aBinPath, std::string& aErrorString);
33 static void SetVersion(
int aMajor,
int aMinor,
int aPatch);
49 static std::string
DocumentationURL_Static(
const std::string& aPageName,
const std::string& aAnchor = std::string());
51 static std::string
DocumentationURL(
const std::string& aPageName,
const std::string& aAnchor = std::string());
54 static UtPath
Search(
const std::vector<UtPath>& aPathsToSearch,
const UtPath& aRelativePath,
bool aTargetIsDirectory);
57 static UtPath
RelativePath(
const std::vector<UtPath>& aPathsToSearch,
const UtPath& aFullPath);
65 static UtPath InitSubDir(
const UtPath& aParentDir,
const std::string& aSubDirName);
66 static bool InitDataDir(std::string& aErrorString);
67 static bool InitRootDir(std::string& aErrorString);
69 static UtPath FindPath(
const UtPath& aPath,
const std::string& aDir,
int aIter);
71 static bool InitDir(UtPath& aDirPath,
const std::string& aDirName, std::string& aErrorString);
#define VI_EXPORT
Definition ViExport.hpp:38
Definition RunEnvManager.hpp:28
static const UtPath & GetInstallRootDir()
Definition RunEnvManager.cpp:109
static const UtPath & GetDemosDir()
Definition RunEnvManager.cpp:119
static std::string DocumentationURL_Static(const std::string &aPageName, const std::string &aAnchor=std::string())
Definition RunEnvManager.cpp:187
static bool Initialize(const UtPath &aBinPath, std::string &aErrorString)
Definition RunEnvManager.cpp:44
static UtPath FindCriticalResource(const std::string &aFileRelativePath)
Definition RunEnvManager.cpp:242
static std::string GetSimpleVersionString()
Definition RunEnvManager.cpp:256
static const UtPath & GetBinDir()
Definition RunEnvManager.cpp:114
static const UtPath & GetDataDir()
Definition RunEnvManager.cpp:129
static void SetVersion(int aMajor, int aMinor, int aPatch)
Definition RunEnvManager.cpp:101
static const UtPath & GetScenariosDir()
Definition RunEnvManager.cpp:144
static std::string DocumentationURL(const std::string &aPageName, const std::string &aAnchor=std::string())
Definition RunEnvManager.cpp:192
static const UtPath & GetGrammarDir()
Definition RunEnvManager.cpp:134
static bool HasDeveloperPaths()
Definition RunEnvManager.cpp:149
static UtPath Search(const std::vector< UtPath > &aPathsToSearch, const UtPath &aRelativePath, bool aTargetIsDirectory)
Search for a file in a list of directories. returns an empty path if the file is not found.
Definition RunEnvManager.cpp:198
static const UtPath & GetDocumentationDir()
Definition RunEnvManager.cpp:124
static UtPath RelativePath(const std::vector< UtPath > &aPathsToSearch, const UtPath &aFullPath)
Complimentary to Search(), this yields the best relative path given a search path.
Definition RunEnvManager.cpp:219
static std::string GetVersionString(bool aDate=true)
Definition RunEnvManager.cpp:86
static std::vector< UtPath > GetDemoSearchPaths()
Definition RunEnvManager.cpp:155
static const UtPath & GetTrainingDir()
Definition RunEnvManager.cpp:139