|
Reference documentation for deal.II version 9.2.0
|
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\)
\(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\)
\(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\)
\(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Go to the documentation of this file.
16 #ifndef dealii_path_search_h
17 #define dealii_path_search_h
125 find(
const std::string &filename,
const char *open_mode =
"r");
146 find(
const std::string &filename,
147 const std::string &suffix,
148 const char * open_mode =
"r");
153 template <
class StreamType>
155 show(StreamType &stream)
const;
183 <<
"The class " << arg1
184 <<
" must be registered before referring it in PathSearch.");
193 <<
"The file \"" << arg1 <<
"\" was not found in the path for "
194 <<
"files of class " << arg2 <<
".");
212 static std::vector<std::string> &
219 static std::vector<std::string> &
230 static std::map<std::string, std::vector<std::string>>
path_lists;
262 template <
class StreamType>
266 out <<
"DEAL_II_" <<
cls <<
"PATH=\"";
275 out <<
'"' << std::endl <<
" Suffixes";
277 out <<
" \"" << s <<
'"';
static std::vector< std::string > & get_suffix_list(const std::string &cls)
@ after_none
Add in path list after empty element.
static void initialize_classes()
static ::ExceptionBase & ExcFileNotFound(std::string arg1, std::string arg2)
static std::vector< std::string > & get_path_list(const std::string &cls)
@ front
Add new item at front of list.
static ::ExceptionBase & ExcNoClass(std::string arg1)
static std::map< std::string, std::vector< std::string > > path_lists
void add_suffix(const std::string &suffix, Position pos=back)
static std::map< std::string, std::vector< std::string > > suffix_lists
#define DEAL_II_NAMESPACE_OPEN
#define DeclException1(Exception1, type1, outsequence)
PathSearch(const std::string &cls, const unsigned int debug=0)
static void add_class(const std::string &cls)
void add_path(const std::string &path, Position pos=back)
std::vector< std::string > & my_path_list
std::map< std::string, std::vector< std::string > >::value_type map_type
@ back
Add new item at end of list.
void show(StreamType &stream) const
#define DEAL_II_NAMESPACE_CLOSE
std::vector< std::string > & my_suffix_list
std::string find(const std::string &filename, const char *open_mode="r")
#define DeclException2(Exception2, type1, type2, outsequence)