Sleeping Wombat GUI  0.100
swGUI
File.h
Go to the documentation of this file.
1 #pragma once
2 
9 #include "Path.h"
10 
11 
12 namespace filesystem
13 {
14 
15 
20 class File
21 {
22 private:
23 
25 
26 protected:
27 public:
28  explicit File ( const Path& path );
29  explicit File ( Path&& path );
30  ~File () = default;
31 
32  bool Exists () const;
33  Size FileSize () const;
34 
35  bool Remove ();
36  bool Move ( const Path& newPath );
37  bool Copy ( const Path& newPath );
38 };
39 
40 } // filesystem
41 
Definition: Path.h:22
bool Copy(const Path &newPath)
Definition: File.cpp:52
File(const Path &path)
Definition: File.cpp:12
Path m_filePath
Definition: File.h:24
File abstraction layer.
Definition: File.h:20
Plik zawiera definicje podstawowych typów zmiennych.
bool Exists() const
Definition: File.cpp:23
size_t Size
Definition: TypesDefinitions.h:35
bool Remove()
Definition: File.cpp:35
Definition: File.h:12
bool Move(const Path &newPath)
Definition: File.cpp:41
Size FileSize() const
Definition: File.cpp:29