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

GlobPattern Class Reference

#include <globPattern.h>

List of all members.

Public Member Functions

INLINE GlobPattern (const string &pattern=string())
INLINE GlobPattern (const GlobPattern &copy)
INLINE void operator= (const GlobPattern &copy)
INLINE void set_pattern (const string &pattern)
INLINE const string & get_pattern () const
INLINE bool matches (const string &candidate) const
INLINE void output (ostream &out) const
bool has_glob_characters () const
int match_files (vector_string &results, const Filename &cwd=Filename())

Private Member Functions

bool matches_substr (string::const_iterator pi, string::const_iterator pend, string::const_iterator ci, string::const_iterator cend) const
bool matches_set (string::const_iterator &pi, string::const_iterator pend, char ch) const
int r_match_files (const Filename &prefix, const string &suffix, vector_string &results, const Filename &cwd)

Private Attributes

string _pattern


Constructor & Destructor Documentation

INLINE GlobPattern::GlobPattern const string &  pattern = string()  ) 
 

INLINE GlobPattern::GlobPattern const GlobPattern &  copy  ) 
 


Member Function Documentation

INLINE const string& GlobPattern::get_pattern  )  const
 

bool GlobPattern::has_glob_characters  )  const
 

Definition at line 29 of file globPattern.cxx.

References _pattern.

Referenced by r_match_files().

int GlobPattern::match_files vector_string &  results,
const Filename &  cwd = Filename()
 

Definition at line 69 of file globPattern.cxx.

References _pattern, and r_match_files().

Referenced by main().

INLINE bool GlobPattern::matches const string &  candidate  )  const
 

Referenced by NodePath::find_all_textures(), FindApproxPath::Component::matches(), NodePath::r_find_texture(), and r_match_files().

bool GlobPattern::matches_set string::const_iterator &  pi,
string::const_iterator  pend,
char  ch
const [private]
 

Definition at line 257 of file globPattern.cxx.

References end, and start.

Referenced by matches_substr().

bool GlobPattern::matches_substr string::const_iterator  pi,
string::const_iterator  pend,
string::const_iterator  ci,
string::const_iterator  cend
const [private]
 

Definition at line 178 of file globPattern.cxx.

References matches_set().

INLINE void GlobPattern::operator= const GlobPattern &  copy  ) 
 

INLINE void GlobPattern::output ostream &  out  )  const
 

Referenced by operator<<().

int GlobPattern::r_match_files const Filename &  prefix,
const string &  suffix,
vector_string &  results,
const Filename &  cwd
[private]
 

Definition at line 97 of file globPattern.cxx.

References _pattern, has_glob_characters(), and matches().

Referenced by match_files().

INLINE void GlobPattern::set_pattern const string &  pattern  ) 
 


Member Data Documentation

string GlobPattern::_pattern [private]
 

Definition at line 70 of file globPattern.h.

Referenced by has_glob_characters(), match_files(), and r_match_files().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:12:26 2003 for Panda by doxygen1.3