Sleeping Wombat Common Library  0.50.0
swCommonLibrary
File.h
Go to the documentation of this file.
1 #pragma once
2 
9 #include "Path.h"
10 
11 #include <string>
12 
13 
14 namespace filesystem
15 {
16 
17 
22 class File
23 {
24 private:
25 
26  Path m_filePath;
27 
28 protected:
29 public:
30  explicit File ( const Path& path );
31  explicit File ( Path&& path );
32  ~File () = default;
33 
34  bool Exists () const;
35  Size FileSize () const;
36 
37  bool Remove ();
38  bool Move ( const Path& newPath );
39  bool Copy ( const Path& newPath );
40 
41 
42 public:
43 
44  static std::string Load ( const Path& newPath );
45 };
46 
47 } // filesystem
48 
Definition: Path.h:26
File abstraction layer.
Definition: File.h:22
Plik zawiera definicje podstawowych typów zmiennych.
Definition: Dir.cpp:12