Fork de wikipp, le moteur de wiki en c++, basé sur cppcms. Le fork ajoute la langue française
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

wiki.h 838B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef WIKI_H
  2. #define WIKI_H
  3. #include <cppcms/application.h>
  4. #include <cppdb/frontend.h>
  5. #include "page.h"
  6. #include "users.h"
  7. #include "index.h"
  8. #include "options.h"
  9. namespace apps {
  10. class wiki : public cppcms::application {
  11. friend class apps::page;
  12. friend class apps::options;
  13. friend class apps::users;
  14. friend class apps::index;
  15. friend class apps::master;
  16. std::string script;
  17. public:
  18. std::string conn;
  19. // Data
  20. std::string locale_name;
  21. // Applications
  22. apps::page page;
  23. apps::options options;
  24. apps::users users;
  25. apps::index index;
  26. std::string root(std::string locale_name="");
  27. bool set_locale(std::string);
  28. void run(std::string lang,std::string url);
  29. //virtual void on_404();
  30. virtual void main(std::string url);
  31. wiki(cppcms::service &s);
  32. private:
  33. std::map<std::string,std::string> lang_map;
  34. };
  35. }
  36. #endif