Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PathReplace Class Reference

#include <pathReplace.h>

Inheritance diagram for PathReplace:

ReferenceCount List of all members.

Public Member Functions

 PathReplace ()
 ~PathReplace ()
INLINE void clear ()
INLINE void add_pattern (const string &orig_prefix, const string &replacement_prefix)
INLINE int get_num_patterns () const
INLINE const string & get_orig_prefix (int n) const
INLINE const string & get_replacement_prefix (int n) const
INLINE bool is_empty () const
Filename match_path (const Filename &orig_filename, const DSearchPath &additional_path=DSearchPath())
Filename store_path (const Filename &orig_filename)
INLINE Filename convert_path (const Filename &orig_filename, const DSearchPath &additional_path=DSearchPath())
void write (ostream &out, int indent_level=0) const

Public Attributes

DSearchPath _path
PathStore _path_store
Filename _path_directory

Private Types

typedef pvector< ComponentComponents
typedef pvector< EntryEntries

Private Attributes

Entries _entries

Member Typedef Documentation

typedef pvector<Component> PathReplace::Components [private]
 

Definition at line 84 of file pathReplace.h.

typedef pvector<Entry> PathReplace::Entries [private]
 

Definition at line 101 of file pathReplace.h.


Constructor & Destructor Documentation

PathReplace::PathReplace  ) 
 

Definition at line 29 of file pathReplace.cxx.

References _path_store, and PS_keep.

PathReplace::~PathReplace  ) 
 

Definition at line 39 of file pathReplace.cxx.


Member Function Documentation

INLINE void PathReplace::add_pattern const string &  orig_prefix,
const string &  replacement_prefix
 

Referenced by ProgramBase::dispatch_path_replace().

INLINE void PathReplace::clear  ) 
 

INLINE Filename PathReplace::convert_path const Filename orig_filename,
const DSearchPath additional_path = DSearchPath()
 

INLINE int PathReplace::get_num_patterns  )  const
 

INLINE const string& PathReplace::get_orig_prefix int  n  )  const
 

INLINE const string& PathReplace::get_replacement_prefix int  n  )  const
 

INLINE bool PathReplace::is_empty  )  const
 

Filename PathReplace::match_path const Filename orig_filename,
const DSearchPath additional_path = DSearchPath()
 

Definition at line 52 of file pathReplace.cxx.

References _entries, _path, _path_store, get_model_path(), PS_keep, Filename::resolve_filename(), and PathReplace::Entry::try_match().

Referenced by EggBase::convert_paths().

Filename PathReplace::store_path const Filename orig_filename  ) 
 

Definition at line 127 of file pathReplace.cxx.

References _path_directory, Filename::get_basename(), Filename::is_local(), Filename::make_absolute(), Filename::make_relative_to(), PS_absolute, PS_invalid, PS_keep, PS_rel_abs, PS_relative, and PS_strip.

Referenced by EggBase::convert_paths().

void PathReplace::write ostream &  out,
int  indent_level = 0
const
 

Definition at line 168 of file pathReplace.cxx.

References _entries, _path, _path_directory, _path_store, DSearchPath::get_directory(), DSearchPath::get_num_directories(), indent(), PS_rel_abs, and PS_relative.


Member Data Documentation

Entries PathReplace::_entries [private]
 

Definition at line 102 of file pathReplace.h.

Referenced by match_path(), and write().

DSearchPath PathReplace::_path
 

Definition at line 68 of file pathReplace.h.

Referenced by MayaPview::convert(), match_path(), and write().

Filename PathReplace::_path_directory
 

Definition at line 72 of file pathReplace.h.

Referenced by store_path(), and write().

PathStore PathReplace::_path_store
 

Definition at line 71 of file pathReplace.h.

Referenced by match_path(), PathReplace(), and write().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:01:20 2003 for Panda-Tool by doxygen1.3