VMime
fileSystemFactory Class Referenceabstract
Inheritance diagram for fileSystemFactory:
Collaboration diagram for fileSystemFactory:

Public Member Functions

virtual ~fileSystemFactory ()
 
virtual shared_ptr< 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
 

Additional Inherited Members

- Protected Member Functions inherited from object
 object ()
 
 object (const object &)
 
objectoperator= (const object &)
 
virtual ~object ()
 

Detailed Description

Constructs 'file' objects.

Constructor & Destructor Documentation

virtual ~fileSystemFactory ( )
virtual

Member Function Documentation

virtual shared_ptr<file> create ( const file::path path) const
pure virtual

Create a new file object from the specified path.

Parameters
pathfull path (absolute) of the file
Returns
new file object for the path
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
pathpath to test
Returns
true if the path is valid, false otherwise
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
comppath component to test
Returns
true if the component is valid, false otherwise
virtual const string pathToString ( const file::path path) const
pure virtual

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

Parameters
pathabstract representation of the path
Returns
string representation of the path
virtual const file::path stringToPath ( const string str) const
pure virtual

Parse a path contained in a string.

Parameters
strstring containing a path in a system-dependent representation
Returns
path object (abstract representation)

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