fileSystemFactory Class Reference

Constructs 'file' objects. More...

Inheritance diagram for fileSystemFactory:
Inheritance graph
[legend]
Collaboration diagram for fileSystemFactory:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~fileSystemFactory ()
virtual ref< filecreate (const file::path &path) const =0
virtual const file::path stringToPath (const string &str) const =0
virtual const string pathToString (const file::path &path) const =0
virtual bool isValidPathComponent (const file::path::component &comp) const =0
virtual bool isValidPath (const file::path &path) const =0

Detailed Description

Constructs 'file' objects.


Constructor & Destructor Documentation

virtual ~fileSystemFactory (  )  [virtual]

Member Function Documentation

virtual ref<file> create ( const file::path path  )  const [pure virtual]

Create a new file object from the specified path.

Parameters:
path full path (absolute) of the file
Returns:
new file object for the path

Implemented in posixFileSystemFactory, and windowsFileSystemFactory.

virtual bool isValidPath ( const file::path path  )  const [pure virtual]

Test whether the specified path is syntactically valid (ie: components do not contain any 'special' character).

Parameters:
path path to test
Returns:
true if the path is valid, false otherwise

Implemented in posixFileSystemFactory, and windowsFileSystemFactory.

virtual bool isValidPathComponent ( const file::path::component comp  )  const [pure virtual]

Test whether the specified path component is syntactically valid (ie: does not contain any 'special' character).

Parameters:
comp path component to test
Returns:
true if the component is valid, false otherwise

Implemented in posixFileSystemFactory, and windowsFileSystemFactory.

virtual const string pathToString ( const file::path path  )  const [pure virtual]

Return the system-dependent string representation for the specified path.

Parameters:
path abstract representation of the path
Returns:
string representation of the path

Implemented in posixFileSystemFactory, and windowsFileSystemFactory.

virtual const file::path stringToPath ( const string str  )  const [pure virtual]

Parse a path contained in a string.

Parameters:
str string containing a path in a system-dependent representation
Returns:
path object (abstract representation)

Implemented in posixFileSystemFactory, and windowsFileSystemFactory.


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2