Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
Path Class Reference

#include <path.h>

Public Types

typedef std::wstring String
 

Public Member Functions

 Path ()
 
 Path (const char *p)
 
 Path (const wchar_t *p)
 
 Path (const std::string &s)
 
 Path (const std::wstring &s)
 
Pathoperator= (const Path &rhs)
 
bool empty () const
 
const Stringstring () const
 
bool operator< (const Path &rhs) const
 
bool operator== (const Path &rhs) const
 
bool operator!= (const Path &rhs) const
 
bool IsDirectory () const
 
Path Parent () const
 
Path Filename () const
 
Path Basename () const
 
Path Extension () const
 
Path ChangeExtension (Path extension) const
 
Path operator/ (Path rhs) const
 
Path BeforeCommon (Path other) const
 Return the path before the common part of both paths. More...
 

Static Public Member Functions

static Status Validate (String::value_type c)
 

Private Member Functions

void PrintToDebugOutput () const
 
void DetectSeparator ()
 

Private Attributes

String path
 
wchar_t separator
 

Detailed Description

Definition at line 75 of file path.h.

Member Typedef Documentation

typedef std::wstring Path::String

Definition at line 78 of file path.h.

Constructor & Destructor Documentation

Path::Path ( )
inline

Definition at line 80 of file path.h.

Path::Path ( const char *  p)
inline

Definition at line 85 of file path.h.

Path::Path ( const wchar_t p)
inline

Definition at line 93 of file path.h.

Path::Path ( const std::string &  s)
inline

Definition at line 99 of file path.h.

Path::Path ( const std::wstring &  s)
inline

Definition at line 105 of file path.h.

Member Function Documentation

Path Path::Basename ( ) const
inline

Definition at line 166 of file path.h.

Path Path::BeforeCommon ( Path  other) const
inline

Return the path before the common part of both paths.

Parameters
otherIndicates the start of the path which should be removed
Note
other should be a VfsPath, while this should be an OsPath

Definition at line 213 of file path.h.

Path Path::ChangeExtension ( Path  extension) const
inline

Definition at line 185 of file path.h.

void Path::DetectSeparator ( )
inlineprivate

Definition at line 238 of file path.h.

bool Path::empty ( ) const
inline

Definition at line 118 of file path.h.

Path Path::Extension ( ) const
inline

Definition at line 176 of file path.h.

Path Path::Filename ( ) const
inline

Definition at line 158 of file path.h.

bool Path::IsDirectory ( ) const
inline

Definition at line 143 of file path.h.

bool Path::operator!= ( const Path rhs) const
inline

Definition at line 138 of file path.h.

Path Path::operator/ ( Path  rhs) const
inline

Definition at line 190 of file path.h.

bool Path::operator< ( const Path rhs) const
inline

Definition at line 128 of file path.h.

Path& Path::operator= ( const Path rhs)
inline

Definition at line 111 of file path.h.

bool Path::operator== ( const Path rhs) const
inline

Definition at line 133 of file path.h.

Path Path::Parent ( ) const
inline

Definition at line 150 of file path.h.

void Path::PrintToDebugOutput ( ) const
inlineprivate

Definition at line 233 of file path.h.

const String& Path::string ( ) const
inline

Definition at line 123 of file path.h.

Status Path::Validate ( String::value_type  c)
static

Definition at line 99 of file path.cpp.

Member Data Documentation

String Path::path
private

Definition at line 252 of file path.h.

wchar_t Path::separator
private

Definition at line 261 of file path.h.


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