X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fmisc%2Fsg_path.hxx;h=0684d5701927b5f7b0bb320218a1b6dd06280ec3;hb=e4e31be7d43569a92a5d9fa7e784381b66cbd95a;hp=6f8968b7d5ffb2db6c66423f7f6225b112e1f367;hpb=510543e14b92ec3dd963135e679ed104420a8512;p=simgear.git diff --git a/simgear/misc/sg_path.hxx b/simgear/misc/sg_path.hxx index 6f8968b7..0684d570 100644 --- a/simgear/misc/sg_path.hxx +++ b/simgear/misc/sg_path.hxx @@ -141,6 +141,11 @@ public: */ const char* c_str() const { return path.c_str(); } + /** + * Get the path string in OS native form + */ + std::string str_native() const; + /** * Determine if file exists by attempting to fopen it. * @return true if file exists, otherwise returns false. @@ -166,6 +171,11 @@ public: * I.e starts with a directory seperator, or a single character + colon */ bool isAbsolute() const; + + /** + * check for default constructed path + */ + bool isNull() const; private: void fix();