page.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * This file is the main code of Matedi
  3. * Copyright (C) <2016> <alkeon> [alkeon@autistici.org]
  4. * Matedi is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * Matedi is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with Matedi. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #define LASTFOLDER "final/"
  18. #define HEAD "header/"
  19. #define BODY "parts/"
  20. #define FOOT "footer/"
  21. #ifndef PAGE
  22. #define PAGE
  23. #include <iostream>
  24. #include <string>
  25. using namespace std;
  26. struct page{
  27. page(string name, int language, int root);
  28. page(string name, int language, int root, string version);
  29. page();
  30. ~page();
  31. page& operator =(const page& P);
  32. string load(string file);
  33. void save(string text);
  34. string name,header,body,footer;
  35. };
  36. #endif