Navigation

Operators and Keywords

Function List:

C++ API

load_path Class Reference

#include <load-path.h>

Collaboration diagram for load_path:

List of all members.


Classes

class  dir_info
class  file_info

Public Types

typedef void(* hook_fcn_ptr )(const std::string &dir)

Public Member Functions

 ~load_path (void)

Static Public Member Functions

static void initialize (bool set_initial_path=false)
static void clear (void)
static void set (const std::string &p, bool warn=false)
static void append (const std::string &dir, bool warn=false)
static void prepend (const std::string &dir, bool warn=false)
static bool remove (const std::string &dir)
static void update (void)
static std::string find_method (const std::string &class_name, const std::string &meth, std::string &dir_name)
static std::string find_method (const std::string &class_name, const std::string &meth)
static std::list< std::stringmethods (const std::string &class_name)
static bool any_class_method (const std::string &meth)
static std::string find_fcn (const std::string &fcn, std::string &dir_name)
static std::string find_fcn (const std::string &fcn)
static std::string find_private_fcn (const std::string &dir, const std::string &fcn)
static std::string find_fcn_file (const std::string &fcn)
static std::string find_oct_file (const std::string &fcn)
static std::string find_mex_file (const std::string &fcn)
static std::string find_file (const std::string &file)
static std::string find_dir (const std::string &dir)
static std::string find_first_of (const string_vector &files)
static string_vector find_all_first_of (const string_vector &files)
static string_vector dirs (void)
static std::list< std::stringdir_list (void)
static string_vector files (const std::string &dir, bool omit_exts=false)
static string_vector fcn_names (void)
static std::string path (void)
static void display (std::ostream &os)
static void set_add_hook (hook_fcn_ptr f)
static void set_remove_hook (hook_fcn_ptr f)
static void set_command_line_path (const std::string &p)
static std::string get_command_line_path (void)
static std::string system_path (void)

Protected Member Functions

 load_path (void)

Friends

void print_types (std::ostream &os, int types)
string_vector get_file_list (const dir_info::fcn_file_map_type &lst)
void print_fcn_list (std::ostream &os, const dir_info::fcn_file_map_type &lst)
dir_info::fcn_file_map_type get_fcn_files (const std::string &d)

Member Typedef Documentation


Constructor & Destructor Documentation

load_path::load_path ( void   )  [inline, protected]

load_path::~load_path ( void   )  [inline]


Member Function Documentation

static bool load_path::any_class_method ( const std::string meth  )  [inline, static]

static void load_path::append ( const std::string dir,
bool  warn = false 
) [inline, static]

static void load_path::clear ( void   )  [inline, static]

static std::list<std::string> load_path::dir_list ( void   )  [inline, static]

static string_vector load_path::dirs ( void   )  [inline, static]

static void load_path::display ( std::ostream os  )  [inline, static]

static string_vector load_path::fcn_names ( void   )  [inline, static]

static string_vector load_path::files ( const std::string dir,
bool  omit_exts = false 
) [inline, static]

static string_vector load_path::find_all_first_of ( const string_vector files  )  [inline, static]

static std::string load_path::find_dir ( const std::string dir  )  [inline, static]

static std::string load_path::find_fcn ( const std::string fcn  )  [inline, static]

static std::string load_path::find_fcn ( const std::string fcn,
std::string dir_name 
) [inline, static]

static std::string load_path::find_fcn_file ( const std::string fcn  )  [inline, static]

static std::string load_path::find_file ( const std::string file  )  [inline, static]

static std::string load_path::find_first_of ( const string_vector files  )  [inline, static]

static std::string load_path::find_method ( const std::string class_name,
const std::string meth 
) [inline, static]

static std::string load_path::find_method ( const std::string class_name,
const std::string meth,
std::string dir_name 
) [inline, static]

static std::string load_path::find_mex_file ( const std::string fcn  )  [inline, static]

static std::string load_path::find_oct_file ( const std::string fcn  )  [inline, static]

static std::string load_path::find_private_fcn ( const std::string dir,
const std::string fcn 
) [inline, static]

static std::string load_path::get_command_line_path ( void   )  [inline, static]

static void load_path::initialize ( bool  set_initial_path = false  )  [inline, static]

static std::list<std::string> load_path::methods ( const std::string class_name  )  [inline, static]

static std::string load_path::path ( void   )  [inline, static]

static void load_path::prepend ( const std::string dir,
bool  warn = false 
) [inline, static]

static bool load_path::remove ( const std::string dir  )  [inline, static]

static void load_path::set ( const std::string p,
bool  warn = false 
) [inline, static]

static void load_path::set_add_hook ( hook_fcn_ptr  f  )  [inline, static]

static void load_path::set_command_line_path ( const std::string p  )  [inline, static]

static void load_path::set_remove_hook ( hook_fcn_ptr  f  )  [inline, static]

static std::string load_path::system_path ( void   )  [inline, static]

static void load_path::update ( void   )  [inline, static]


Friends And Related Function Documentation

dir_info::fcn_file_map_type get_fcn_files ( const std::string d  )  [friend]

string_vector get_file_list ( const dir_info::fcn_file_map_type &  lst  )  [friend]

void print_fcn_list ( std::ostream os,
const dir_info::fcn_file_map_type &  lst 
) [friend]

void print_types ( std::ostream os,
int  types 
) [friend]


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