1 // dirsearch.h -- directory searching for gold -*- C++ -*-
3 #ifndef GOLD_DIRSEARCH_H
4 #define GOLD_DIRSEARCH_H
10 #include "workqueue.h"
15 // A simple interface to manage directories to be searched for
23 // Add a directory to the search path.
25 add(Workqueue
*, const char*);
27 // Add a list of directories to the search path.
29 add(Workqueue
*, const General_options::Dir_list
&);
31 // Search for a file, giving one or two names to search for (the
32 // second one may be empty). Return a full path name for the file,
33 // or the empty string if it could not be found. This may only be
34 // called if the token is not blocked.
36 find(const std::string
&, const std::string
& n2
= std::string()) const;
38 // Return a reference to the blocker token which controls access.
41 { return this->token_
; }
44 // We can not copy this class.
45 Dirsearch(const Dirsearch
&);
46 Dirsearch
& operator=(const Dirsearch
&);
48 // Directories to search.
49 std::list
<const char*> directories_
;
50 // Blocker token to control access from tasks.
54 } // End namespace gold.
56 #endif // !defined(GOLD_DIRSEARCH_H)
This page took 0.03078 seconds and 4 git commands to generate.