www.mooseframework.org
Classes | Functions
Parser.h File Reference

Go to the source code of this file.

Classes

class  ExpandWalker
 
class  Parser
 Class for parsing input files. More...
 

Functions

std::string errormsg (std::string, hit::Node *)
 
template<typename T , typename... Args>
std::string errormsg (std::string fname, hit::Node *n, T arg, Args...args)
 

Function Documentation

std::string errormsg ( std::string  ,
hit::Node *   
)
inline
template<typename T , typename... Args>
std::string errormsg ( std::string  fname,
hit::Node *  n,
arg,
Args...  args 
)

Definition at line 46 of file Parser.h.

47 {
48  std::stringstream ss;
49  if (n && fname.size() > 0)
50  ss << fname << ":" << n->line() << ": ";
51  else if (fname.size() > 0)
52  ss << fname << ":0: ";
53  ss << arg;
54  ss << errormsg("", nullptr, args...);
55  return ss.str();
56 }
PetscInt n
std::string errormsg(std::string, hit::Node *)
Definition: Parser.h:39