fawkes::PathParser Class Reference

Path parser. More...

#include <utils/system/pathparser.h>

Inheritance diagram for fawkes::PathParser:

[legend]
List of all members.

Public Member Functions

 PathParser (std::string &path)
 Constructor (C++ string).
 PathParser (const char *path)
 Constructor (C string).
void print_debug ()
 Debug print to stdout.
std::string path_as_string ()
 Get path as string.
bool is_absolute () const
 Check if path is absolute.

Detailed Description

Path parser.

Parses a given (Unix) file system path and provides the elements and vector elements.

Author:
Tim Niemueller

Definition at line 32 of file pathparser.h.


Constructor & Destructor Documentation

fawkes::PathParser::PathParser ( std::string &  path  ) 

Constructor (C++ string).

Parameters:
path path to parse

Definition at line 44 of file pathparser.cpp.

fawkes::PathParser::PathParser ( const char *  path  ) 

Constructor (C string).

Parameters:
path path to parse

Definition at line 53 of file pathparser.cpp.


Member Function Documentation

bool fawkes::PathParser::is_absolute (  )  const

Check if path is absolute.

Returns:
true if path is absolute, false otherwise

Definition at line 123 of file pathparser.cpp.

std::string fawkes::PathParser::path_as_string (  ) 

Get path as string.

Joins the path elements to one path again.

Returns:
path as string

Definition at line 101 of file pathparser.cpp.

void fawkes::PathParser::print_debug (  ) 

Debug print to stdout.

Definition at line 89 of file pathparser.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Feb 22 13:32:55 2011 for Fawkes API by  doxygen 1.4.7