MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / GetCurrentApp

Method GetCurrentApp

MonaBase/include/Mona/FileSystem.h:120–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118 static const char* GetHome(const char* defaultPath=NULL) { return _Home ? _Home.c_str() : defaultPath; }
119 static bool GetHome(std::string& path) { return _Home ? (path.assign(_Home),true) : false; }
120 static const char* GetCurrentApp(const char* defaultPath=NULL) { return _CurrentApp ? _CurrentApp.c_str() : defaultPath; }
121 static bool GetCurrentApp(std::string& path) { return _CurrentApp ? (path.assign(_CurrentApp), true) : false; }
122 static const char* GetCurrentDir(const char* defaultPath=NULL) { return _CurrentDirs ? _CurrentDirs.back().c_str() : defaultPath; }
123 static bool GetCurrentDir(std::string& path) { return _CurrentDirs ? (path.assign(_CurrentDirs.back()),true) : false; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected