UnixPath Class Reference

A unix-style path string which can be modified at runtime. More...

#include <fs_path.h>

Public Member Functions

 UnixPath (const char *root)
 Constructs with the directory root.
bool empty () const
const char * c_str () const
void push (const char *name)
 Appends the directory name.
void push (const std::string &name)
 Appends the directory name.
void push (const char *first, const char *last)
 Appends the directory [first, last).
void push_filename (const char *name)
 Appends the filename name.
void push_filename (const std::string &name)
 Appends the filename name.
void pop ()
 Removes the last directory or filename appended.

Private Member Functions

void check_separator ()

Private Attributes

StringBuffer m_string

Detailed Description

A unix-style path string which can be modified at runtime.

Definition at line 31 of file fs_path.h.


Constructor & Destructor Documentation

UnixPath::UnixPath ( const char *  root  )  [inline]

Constructs with the directory root.

Definition at line 42 of file fs_path.h.

References check_separator().


Member Function Documentation

const char* UnixPath::c_str (  )  const [inline]

Definition at line 51 of file fs_path.h.

References m_string.

void UnixPath::check_separator (  )  [inline, private]

Definition at line 34 of file fs_path.h.

References empty(), and m_string.

Referenced by push(), and UnixPath().

bool UnixPath::empty (  )  const [inline]

Definition at line 47 of file fs_path.h.

References m_string.

Referenced by check_separator(), and pop().

void UnixPath::pop (  )  [inline]

Removes the last directory or filename appended.

Definition at line 79 of file fs_path.h.

References empty(), and m_string.

void UnixPath::push ( const char *  first,
const char *  last 
) [inline]

Appends the directory [first, last).

Definition at line 66 of file fs_path.h.

References check_separator(), and m_string.

void UnixPath::push ( const std::string name  )  [inline]

Appends the directory name.

Definition at line 61 of file fs_path.h.

References check_separator(), and m_string.

void UnixPath::push ( const char *  name  )  [inline]

Appends the directory name.

Definition at line 56 of file fs_path.h.

References check_separator(), and m_string.

void UnixPath::push_filename ( const std::string name  )  [inline]

Appends the filename name.

Definition at line 75 of file fs_path.h.

References m_string.

void UnixPath::push_filename ( const char *  name  )  [inline]

Appends the filename name.

Definition at line 71 of file fs_path.h.

References m_string.


Field Documentation

StringBuffer UnixPath::m_string [private]

Definition at line 32 of file fs_path.h.

Referenced by c_str(), check_separator(), empty(), pop(), push(), and push_filename().


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

Generated by  doxygen 1.6.2