ProtoZed  awesome branch
A simple but powerful game framework
Classes | Public Types | Public Member Functions | List of all members
PZ::Path Class Reference

A file path. More...

Classes

struct  Attributes
 

Public Types

enum  Type { T_NONEXISTANT, T_FILE, T_DIRECTORY }
 

Public Member Functions

 Path ()
 
 Path (const Path &other)
 
 Path (const std::string &path)
 
 Path (const char *path)
 
 ~Path ()
 
Pathoperator= (const Path &other)
 
Pathoperator= (const std::string &path)
 
Pathoperator= (const char *path)
 
bool operator== (const Path &other) const
 
bool operator!= (const Path &other) const
 
bool operator< (const Path &other) const
 
bool operator> (const Path &other) const
 
Pathoperator+= (const Path &other)
 
const Path operator+ (const Path &other) const
 
Attributes GetAttributes () const
 
bool Exists () const
 
bool IsEmpty () const
 
void Clear ()
 
const std::string & ToString () const
 

Detailed Description

A file path.

All paths are guaranteed to:

Member Enumeration Documentation

Enumerator:
T_NONEXISTANT 
T_FILE 
T_DIRECTORY 

Constructor & Destructor Documentation

PZ::Path::Path ( )
PZ::Path::Path ( const Path other)
PZ::Path::Path ( const std::string &  path)
PZ::Path::Path ( const char *  path)
PZ::Path::~Path ( )

Member Function Documentation

void PZ::Path::Clear ( )
inline
bool PZ::Path::Exists ( ) const
Attributes PZ::Path::GetAttributes ( ) const
bool PZ::Path::IsEmpty ( ) const
inline
bool PZ::Path::operator!= ( const Path other) const
inline
const Path PZ::Path::operator+ ( const Path other) const
inline
Path& PZ::Path::operator+= ( const Path other)
bool PZ::Path::operator< ( const Path other) const
inline
Path& PZ::Path::operator= ( const Path other)
Path& PZ::Path::operator= ( const std::string &  path)
Path& PZ::Path::operator= ( const char *  path)
bool PZ::Path::operator== ( const Path other) const
inline
bool PZ::Path::operator> ( const Path other) const
inline
const std::string& PZ::Path::ToString ( ) const
inline

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