NSCL DDAS  1.0
Support for XIA DDAS at the NSCL
 All Classes Namespaces Files Functions Variables Macros Pages
MediaLocator.h
1 #ifndef MEDIALOCATOR_H
2 #define MEDIALOCATOR_H
3 
4 #include <string>
5 #include <set>
6 
7 class MediaLocator {
8 
9  private:
10  std::set<std::string> m_searchPath;
11 
12  public:
13  MediaLocator() = default;
14  MediaLocator(const MediaLocator&) = default;
15  ~MediaLocator() = default;
16 
17  std::string locateFile(const std::string& file);
18 
19  void addPath(const std::string& path);
20 
21  private:
22  bool fileExists(const std::string& path);
23 
24 };
25 
26 #endif
Definition: MediaLocator.h:7