25 #if defined(__MSWINDOWS__) 27 getenv_s(&size,
nullptr, 0, name.c_str());
30 std::vector<char> tmpvar(size);
31 errno_t
result = getenv_s(&size, tmpvar.data(),
size, name.c_str());
41 #if defined(__LINUX__) 42 char const*
variable = getenv(name.c_str());
65 if (directory.size() > 0)
70 || directory +
"/" == d
71 || directory +
"\\" == d)
78 char lastChar = directory[directory.size() - 1];
79 if (lastChar ==
'\\' || lastChar ==
'/')
81 mDirectories.push_back(directory);
85 mDirectories.push_back(directory +
"/");
90 LogError(
"Insert expects non-empty inputs.");
97 for (; iter !=
end; ++iter)
99 if (directory == *iter)
bool Remove(std::string const &directory)
std::vector< std::string > mDirectories
std::string GetPath(std::string const &name) const
const GLuint GLenum const void * binary
GLuint const GLchar * name
std::string GetVariable(std::string const &name)
GLsizei const GLchar *const * string
#define LogError(message)
GLenum GLenum GLenum input
std::string Get(int i) const
bool Insert(std::string const &directory)
int GetNumDirectories() const