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:
34  static util::ProgramDoc& GetProgramDoc(const std::string& bindingName);
35 
37  static void RegisterProgramDoc(const std::string& bindingName,
38  const util::ProgramDoc& programDoc);
39 
41  static std::string& Language();
42 
43  private:
45  BindingInfo() { }
46 
48  static BindingInfo& GetSingleton();
49 
51  std::unordered_map<std::string, util::ProgramDoc> map;
52 
56  std::string language;
57 };
58 
59 } // namespace markdown
60 } // namespace bindings
61 } // namespace mlpack
62 
63 #endif
strip_type.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