dSearchPath.I 864 B

123456789101112131415161718192021
  1. // Filename: dSearchPath.I
  2. // Created by: drose (01Jul00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. ////////////////////////////////////////////////////////////////////
  6. // Function: DSearchPath::search_path
  7. // Access: Public, Static
  8. // Description: A quick-and-easy way to search a searchpath for a
  9. // file when you don't feel like building or keeping
  10. // around a DSearchPath object. This simply
  11. // constructs a temporary DSearchPath based on the
  12. // indicated path string, and searches that.
  13. ////////////////////////////////////////////////////////////////////
  14. INLINE Filename DSearchPath::
  15. search_path(const Filename &filename, const string &path,
  16. const string &delimiters) {
  17. DSearchPath search(path, delimiters);
  18. return search.find_file(filename);
  19. }