]> git.mxchange.org Git - simgear.git/blobdiff - simgear/misc/sg_path.hxx
Fix BTG writer for non-included index arrays.
[simgear.git] / simgear / misc / sg_path.hxx
index 77b69ca3e061a877f604288ce104803d5a889617..0684d5701927b5f7b0bb320218a1b6dd06280ec3 100644 (file)
@@ -58,6 +58,7 @@ public:
     /** Default constructor */
     SGPath();
 
+    /** Copy contructor */
     SGPath(const SGPath& p);
     
     SGPath& operator=(const SGPath& p);
@@ -68,6 +69,13 @@ public:
      */
     SGPath( const std::string& p );
 
+    /**
+     * Construct a path based on the starting path provided and a relative subpath
+     * @param p initial path
+     * @param r relative subpath
+     */
+    SGPath( const SGPath& p, const std::string& r );
+
     /** Destructor */
     ~SGPath();
 
@@ -133,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.
@@ -158,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();