binding_info.hpp
Go to the documentation of this file.
1 
10 #ifndef MLPACK_BINDINGS_MARKDOWN_BINDING_NAME_HPP
11 #define MLPACK_BINDINGS_MARKDOWN_BINDING_NAME_HPP
12 
13 #include <mlpack/prereqs.hpp>
15 
16 namespace mlpack {
17 namespace bindings {
18 namespace markdown {
19 
26 {
27  public:
31  static util::ProgramDoc& GetProgramDoc(const std::string& bindingName);
32 
36  static void RegisterProgramDoc(const std::string& bindingName,
37  const util::ProgramDoc& programDoc);
38 
40  static std::string& Language();
41 
42  private:
44  BindingInfo() { }
45 
47  static BindingInfo& GetSingleton();
48 
50  std::unordered_map<std::string, util::ProgramDoc> map;
51 
55  std::string language;
56 };
57 
58 } // namespace markdown
59 } // namespace bindings
60 } // namespace mlpack
61 
62 #endif
.hpp
Definition: add_to_po.hpp:21
The core includes that mlpack expects; standard C++ includes and Armadillo.
static util::ProgramDoc & GetProgramDoc(const std::string &bindingName)
Return a ProgramDoc object for a given bindingName.
The BindingInfo class is used by the Markdown documentation generator to store multiple ProgramDoc ob...
static void RegisterProgramDoc(const std::string &bindingName, const util::ProgramDoc &programDoc)
Register a ProgramDoc object with the given bindingName.
static std::string & Language()
Get or modify the current language (don&#39;t set it to something invalid!).
A static object whose constructor registers program documentation with the CLI class.
Definition: program_doc.hpp:26