binding_info.hpp
Go to the documentation of this file.
1 
15 #ifndef MLPACK_BINDINGS_MARKDOWN_BINDING_NAME_HPP
16 #define MLPACK_BINDINGS_MARKDOWN_BINDING_NAME_HPP
17 
18 #include <mlpack/prereqs.hpp>
20 
21 namespace mlpack {
22 namespace bindings {
23 namespace markdown {
24 
31 {
32  public:
36  static util::ProgramDoc& GetProgramDoc(const std::string& bindingName);
37 
41  static void RegisterProgramDoc(const std::string& bindingName,
42  const util::ProgramDoc& programDoc);
43 
45  static std::string& Language();
46 
47  private:
49  BindingInfo() { }
50 
52  static BindingInfo& GetSingleton();
53 
55  std::unordered_map<std::string, util::ProgramDoc> map;
56 
60  std::string language;
61 };
62 
63 } // namespace markdown
64 } // namespace bindings
65 } // namespace mlpack
66 
67 #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