15#ifndef dealii_path_search_h
16#define dealii_path_search_h
123 find(
const std::string &filename,
const char *open_mode =
"r");
144 find(
const std::string &filename,
145 const std::string &suffix,
146 const char *open_mode =
"r");
151 template <
typename StreamType>
153 show(StreamType &stream)
const;
181 <<
"The class " << arg1
182 <<
" must be registered before referring it in PathSearch.");
191 <<
"The file \"" << arg1 <<
"\" was not found in the path for "
192 <<
"files of class " << arg2 <<
'.');
198 using map_type = std::map<std::string, std::vector<std::string>>::value_type;
210 static std::vector<std::string> &
217 static std::vector<std::string> &
228 static std::map<std::string, std::vector<std::string>>
path_lists;
260template <
typename StreamType>
264 out <<
"DEAL_II_" <<
cls <<
"PATH=\"";
273 out <<
'"' << std::endl <<
" Suffixes";
275 out <<
" \"" << s <<
'"';
std::string find(const std::string &filename, const char *open_mode="r")
static std::vector< std::string > & get_path_list(const std::string &cls)
void show(StreamType &stream) const
static std::vector< std::string > & get_suffix_list(const std::string &cls)
static std::map< std::string, std::vector< std::string > > path_lists
void add_path(const std::string &path, Position pos=back)
std::vector< std::string > & my_suffix_list
static std::map< std::string, std::vector< std::string > > suffix_lists
static void add_class(const std::string &cls)
std::vector< std::string > & my_path_list
@ back
Add new item at end of list.
@ after_none
Add in path list after empty element.
@ front
Add new item at front of list.
void add_suffix(const std::string &suffix, Position pos=back)
std::map< std::string, std::vector< std::string > >::value_type map_type
static void initialize_classes()
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcFileNotFound(std::string arg1, std::string arg2)
#define DeclException2(Exception2, type1, type2, outsequence)
static ::ExceptionBase & ExcNoClass(std::string arg1)
#define DeclException1(Exception1, type1, outsequence)