#ifndef OBSFILEFINDER_HPP #define OBSFILEFINDER_HPP // // $Id: ObsFileFinder.hpp,v 1.1 2001/10/24 14:46:58 greenlee Exp $ // // File: ObsFileFinder.hpp // Purpose: Class to locate obs files. Obs files are searched for in // in the following places (in order): // // 1. Current working directory. // 2. Private test release ($SRT_PRIVATE_CONTEXT). // 3. D0library ($SRT_PUBLIC_CONTEXT). // // In the case of searches in the private test release or d0library, // different packages are searched. Currently, there are four // packages that contain obs files used by global tracking: // cft_obs, smt_path, gtrprop, and gtr_find (this may change in // the future). The package list is stored as a hard-codec static // variable. // // Created: 23-Oct-2001 Herb Greenlee // // $Revision: 1.1 $ // // #include class ObsFileFinder { public: // Static methods. static std::string find(const std::string& obsname); private: // Attributes. static char* _package_dirs[]; }; #endif