filesystem.h File Reference

Header file declaring portability routines for dealing with filesystems. More...

#include <string>
#include <vector>

Include dependency graph for filesystem.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Namespaces

namespace  dlr::portability
 This namespace contains as much of the platform-specific code as possible, making the other libraries more readable.

Functions

const std::string & dlr::portability::pathDelimiter ()
 This function returns the preferred path delimiter for the operating system.
const std::vector< std::string > & dlr::portability::pathDelimiters ()
 This function returns a vector of strings containing all of the recognized path delimiters for the operating system.
const std::string & dlr::portability::extensionDelimiter ()
 This function returns the string that separates a filename extension from the rest of the filename.
bool dlr::portability::isDirectory (const std::string &path)
 This function returns a bool indicating whether or not the specified path is a directory.
std::string dlr::portability::joinPath (const std::string &part0, const std::string &part1)
std::vector< std::string > dlr::portability::listDirectory (const std::string &directoryName, bool fullPath)
std::pair< std::string,
std::string > 
dlr::portability::splitPath (const std::string &path)
 This function accepts a path returns a pair of strings in which the first element is the directory name and the second is the filename.


Detailed Description

Header file declaring portability routines for dealing with filesystems.

Copyright (C) 2003-2005, David LaRose, dlr@cs.cmu.edu See accompanying file, LICENSE.TXT, for details.

Revision
1047
Date
2008-10-17 15:15:24 -0400 (Fri, 17 Oct 2008)

Definition in file filesystem.h.


Generated on Wed Nov 25 00:03:49 2009 for dlrPortability Utility Library by  doxygen 1.5.8