folder.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * This file is the main code of Matedi
  3. * Copyright (C) <2020> <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. #ifndef __FOLDER__
  18. #define __FOLDER__
  19. #include <iostream>
  20. #include <filesystem>
  21. #include <string>
  22. #include <vector>
  23. using namespace std;
  24. using namespace filesystem;
  25. struct folder{
  26. folder(string path);
  27. folder();
  28. ~folder();
  29. void get_dot_matedi_config(string dot_matedi_path);
  30. void convert();
  31. string load_file(string path);
  32. folder& operator =(const folder& P);
  33. string path;
  34. string _dot_matedi_path, _header_path, _end_path;
  35. vector<string> _clear, _header_only, _end_only;
  36. };
  37. #endif