pathcreator.h 330 B

123456789101112131415161718
  1. #ifndef PATHCREATOR_H
  2. #define PATHCREATOR_H
  3. #include <string>
  4. class PathCreator
  5. {
  6. public:
  7. PathCreator();
  8. ~PathCreator();
  9. std::string GetCurPath();
  10. bool Mkdir(std::string dir);
  11. bool CreateDatePath(std::string root, bool add_time = true);
  12. protected:
  13. std::string m_current_path;
  14. };
  15. #endif // PATHCREATOR_H