// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Library General Public License for more details.
//
-// You should have received a copy of the GNU Library General Public
-// License along with this library; if not, write to the
-// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-// Boston, MA 02111-1307, USA.
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
// $Id$
SG_USING_STD(string);
+#ifdef _MSC_VER
+ typedef int mode_t;
+#endif
/**
* A class to hide path separator difference across platforms and assist
*/
string extension() const;
- /** Get the path string
+ /**
+ * Get the path string
* @return path string
*/
string str() const { return path; }
- /** Get the path string
+ /**
+ * Get the path string
* @return path in "C" string (ptr to char array) form.
*/
const char* c_str() { return path.c_str(); }
};
+/**
+ * Split a directory string into a list of it's parent directories.
+ */
+string_list sgPathBranchSplit( const string &path );
+
/**
* Split a directory search path into a vector of individual paths
*/