Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes

dir_path Class Reference

#include "pathsearch.h"

Collaboration diagram for dir_path:
Collaboration graph
[legend]

List of all members.

Classes

class  static_members

Public Member Functions

 dir_path (const std::string &s=std::string(), const std::string &d=std::string())
 dir_path (const dir_path &dp)
 ~dir_path (void)
string_vector all_directories (void)
string_vector elements (void)
std::string find (const std::string &nm)
string_vector find_all (const std::string &)
string_vector find_all_first_of (const string_vector &names)
std::string find_first (const std::string &)
std::string find_first_of (const string_vector &names)
dir_pathoperator= (const dir_path &dp)
void rehash (void)
void set (const std::string &s)

Static Public Member Functions

static bool is_path_sep (char c)
static void path_sep_char (char c)
static char path_sep_char (void)
static std::string path_sep_str (void)

Private Member Functions

void init (void)

Private Attributes

bool initialized
std::string p
std::string p_default
std::string p_orig
string_vector pv

Detailed Description

Definition at line 30 of file pathsearch.h.


Constructor & Destructor Documentation

dir_path::dir_path ( const std::string &  s = std::string (),
const std::string &  d = std::string () 
) [inline]

Definition at line 36 of file pathsearch.h.

dir_path::dir_path ( const dir_path dp  )  [inline]

Definition at line 44 of file pathsearch.h.

dir_path::~dir_path ( void   )  [inline]

Definition at line 59 of file pathsearch.h.


Member Function Documentation

string_vector dir_path::all_directories ( void   ) 
string_vector dir_path::elements ( void   ) 
std::string dir_path::find ( const std::string &  nm  )  [inline]

Definition at line 72 of file pathsearch.h.

string_vector dir_path::find_all ( const std::string &   ) 
string_vector dir_path::find_all_first_of ( const string_vector names  ) 
std::string dir_path::find_first ( const std::string &   ) 
std::string dir_path::find_first_of ( const string_vector names  ) 
void dir_path::init ( void   )  [private]
static bool dir_path::is_path_sep ( char  c  )  [inline, static]

Definition at line 100 of file pathsearch.h.

dir_path& dir_path::operator= ( const dir_path dp  )  [inline]

Definition at line 49 of file pathsearch.h.

References initialized, p, p_default, p_orig, and pv.

static char dir_path::path_sep_char ( void   )  [inline, static]

Definition at line 85 of file pathsearch.h.

Referenced by DEFUN(), in_path_list(), and split_path().

static void dir_path::path_sep_char ( char  c  )  [inline, static]

Definition at line 90 of file pathsearch.h.

static std::string dir_path::path_sep_str ( void   )  [inline, static]
void dir_path::rehash ( void   )  [inline]

Definition at line 79 of file pathsearch.h.

void dir_path::set ( const std::string &  s  )  [inline]

Definition at line 61 of file pathsearch.h.


Member Data Documentation

Definition at line 112 of file pathsearch.h.

Referenced by operator=().

std::string dir_path::p [private]

Definition at line 116 of file pathsearch.h.

Referenced by operator=().

std::string dir_path::p_default [private]

Definition at line 109 of file pathsearch.h.

Referenced by operator=().

std::string dir_path::p_orig [private]

Definition at line 105 of file pathsearch.h.

Referenced by operator=().

Definition at line 119 of file pathsearch.h.

Referenced by operator=().


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines