Public Member Functions | Private Attributes | List of all members
nom::Path Class Reference

Platform-independent interface for cross-platform handling of pathnames. More...

#include <Path.hpp>

Public Member Functions

 Path (void)
 
 Path (const std::string &p)
 Initialize instance with an existing pathname.
 
 ~Path (void)
 Default destructor.
 
const value_type & native (void) const
 
const value_type & path (void) const
 Obtain assigned pathname.
 
const Path & operator= (const Path &p)
 Assignment operator.
 

Private Attributes

value_type path_separator
 
std::string pathname
 

Detailed Description

Platform-independent interface for cross-platform handling of pathnames.

Inspired by Boost::Filesystem

Definition at line 46 of file Path.hpp.

Constructor & Destructor Documentation

nom::Path::Path ( void  )

Default constructor – pathname is initialized as a null-terminated string.

Definition at line 33 of file Path.cpp.

Member Function Documentation

const value_type & nom::Path::native ( void  ) const

Obtain native path (directory) separator; the value returned is dependent upon the platform and is determined at compile-time, not run-time.

Definition at line 46 of file Path.cpp.

Here is the caller graph for this function:


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