26 #if ! defined (octave_help_h)
27 #define octave_help_h 1
29 #include "octave-config.h"
49 : m_interpreter (interp),
50 m_built_in_docstrings_file (init_built_in_docstrings_file ()),
51 m_doc_cache_file (init_doc_cache_file ()),
52 m_info_file (init_info_file ()),
53 m_info_program (init_info_program ()),
54 m_makeinfo_program (
"makeinfo"),
55 m_suppress_verbose_help_message (false),
56 m_texi_macros_file (init_texi_macros_file ())
67 return set (m_built_in_docstrings_file, file);
76 return set (m_doc_cache_file, file);
81 std::string
info_file ()
const {
return m_info_file; }
85 return set (m_info_file, file);
94 return set (m_info_program, file);
103 return set (m_makeinfo_program, file);
111 return m_suppress_verbose_help_message;
116 return set (m_suppress_verbose_help_message, flag);
125 return set (m_texi_macros_file, file);
128 std::string
raw_help (
const std::string&,
bool&)
const;
130 std::string
which (
const std::string& name)
const;
131 std::string
which (
const std::string& name, std::string& type)
const;
136 std::string&
format)
const;
139 std::string&
format)
const;
147 std::string m_built_in_docstrings_file;
151 std::string m_doc_cache_file;
155 std::string m_info_file;
159 std::string m_info_program;
162 std::string m_makeinfo_program;
166 bool m_suppress_verbose_help_message;
171 std::string m_texi_macros_file;
173 static std::string init_built_in_docstrings_file ();
175 static std::string init_doc_cache_file ();
177 static std::string init_info_file ();
179 static std::string init_info_program ();
181 static std::string init_texi_macros_file ();
183 template <
typename T>
184 T set (T& var,
const T& new_val)
191 bool get_which_info_from_fcn (
const std::string& name,
const octave_value& ov_fcn, std::string& file, std::string& type)
const;
195 bool raw_help_for_class (
const cdef_class& cls,
const std::string& nm,
196 std::string& h, std::string&
w,
197 bool& symbol_found)
const;
199 bool raw_help_from_symbol_table (
const std::string& nm,
200 std::string& h, std::string&
w,
201 bool& symbol_found)
const;
203 bool raw_help_from_file (
const std::string& nm,
204 std::string& h, std::string& file,
205 bool& symbol_found)
const;
207 bool raw_help_from_docstrings_file (
const std::string& nm, std::string& h,
208 bool& symbol_found)
const;
213 OCTAVE_END_NAMESPACE(
octave)
string_vector make_name_list() const
std::string texi_macros_file() const
void get_help_text_from_file(const std::string &fname, std::string &text, std::string &format) const
std::string makeinfo_program(const std::string &file)
void get_help_text(const std::string &name, std::string &text, std::string &format) const
octave_value built_in_docstrings_file(const octave_value_list &args, int nargout)
std::string raw_help(const std::string &, bool &) const
bool suppress_verbose_help_message(bool flag)
std::string info_file() const
std::string info_program() const
bool suppress_verbose_help_message() const
std::string which(const std::string &name) const
octave_value info_file(const octave_value_list &args, int nargout)
std::string info_program(const std::string &file)
std::string which(const std::string &name, std::string &type) const
std::string texi_macros_file(const std::string &file)
help_system(interpreter &interp)
octave_value info_program(const octave_value_list &args, int nargout)
std::string built_in_docstrings_file(const std::string &file)
std::string built_in_docstrings_file() const
octave_value suppress_verbose_help_message(const octave_value_list &args, int nargout)
std::string doc_cache_file() const
octave_value doc_cache_file(const octave_value_list &args, int nargout)
std::string makeinfo_program() const
std::string info_file(const std::string &file)
std::string doc_cache_file(const std::string &file)
octave_value makeinfo_program(const octave_value_list &args, int nargout)
octave_value texi_macros_file(const octave_value_list &args, int nargout)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
string_vector make_name_list()
std::complex< double > w(std::complex< double > z, double relerr=0)
std::size_t format(std::ostream &os, const char *fmt,...)