Go to the documentation of this file.
45 List<fileName> docDirs(docDict.lookup(
"doxyDocDirs"));
59 Info<<
"No Doxygen sources found under search paths: "
70 const string& searchStr,
71 const bool exactMatch,
75 fileName doxyPath(doxygenPath());
82 Info<<
"Found doxygen help in " << doxyPath.c_str() <<
nl <<
endl;
84 doxygenXmlParser parser
98 Info<<
"Valid types include:" << nl << SortableList<word>(parser.toc());
104 const word& className,
105 const string& searchStr,
106 const bool exactMatch,
110 fileName doxyPath(doxygenPath());
112 if (doxyPath.empty())
117 Info<<
"Found doxygen help in " << doxyPath.c_str() <<
nl <<
endl;
119 string docBrowser =
getEnv(
"FOAM_DOC_BROWSER");
120 if (docBrowser.empty())
122 const dictionary& docDict =
124 docDict.
readEntry(
"docBrowser", docBrowser);
127 doxygenXmlParser parser
141 if (parser.found(className))
145 doxyPath/parser.subDict(className).get<fileName>(
"filename")
149 docBrowser.replaceAll(
"%f", docFile);
151 fileName classDirectory
153 parser.subDict(className).get<fileName>(
"path")
157 parser.subDict(className).get<word>(
"name")
160 Info<<
"Showing documentation for type " << className <<
nl <<
endl;
162 Info<<
"Source file: " << classDirectory.c_str() << classFile <<
nl
170 <<
"No help for type " << className <<
" found."
171 <<
" Valid options include:" << SortableList<word>(parser.toc())
197 "Display documentation in browser"
int debug
Static debugging option.
virtual ~helpType()
Destructor.
A class for handling file names.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
int system(const std::string &command, const bool bg=false)
Execute the specified command via the shell.
virtual void init()
Initialise - typically setting static variables,.
fileName doxygenPath() const
Return file path to the Doxygen sources (if available)
Ostream & endl(Ostream &os)
Add newline and flush stream.
string getEnv(const std::string &envName)
Get environment value for given envName.
#define forAll(list, i)
Loop across all elements in list.
string expand(const std::string &s, const HashTable< string, word, string::hash > &mapping, const char sigil='$')
messageStream Info
Information stream (uses stdout - output is on the master only)
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
void displayDocOptions(const string &searchStr, const bool exactMatch, const word &ext) const
Display the list of documentation options.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void displayDoc(const word &className, const string &searchStr, const bool exactMatch, const word &ext) const
Display the help documentation in a browser.
dictionary & controlDict()
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Add an option to validOptions with usage information.
defineTypeNameAndDebug(combustionModel, 0)
bool isDir(const fileName &name, const bool followLink=true)
Does the name exist as a DIRECTORY in the file system?