Remote Call Framework 3.4
FileSystem.hpp
Go to the documentation of this file.
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2023, Delta V Software. All rights reserved.
6 // https://www.deltavsoft.com
7 //
8 // RCF is distributed under dual licenses - closed source or GPL.
9 // Consult your particular license for conditions of use.
10 //
11 // If you have not purchased a commercial license, you are using RCF under GPL terms.
12 //
13 // Version: 3.4
14 // Contact: support <at> deltavsoft.com
15 //
16 //******************************************************************************
17 
19 
20 #ifndef INCLUDE_RCF_FILESYSTEM_HPP
21 #define INCLUDE_RCF_FILESYSTEM_HPP
22 
23 #include <cstdint>
24 
25 #include <RCF/Export.hpp>
26 #include <RCF/StdFileSystem.hpp>
27 
28 namespace RCF
29 {
31  typedef RCF_FILESYSTEM_NS::path Path;
32 
33  // Serialization function for RCF::Path is in FileTransferService.cpp.
34  //void serialize(SF::Archive &ar, Path &p);
35 
36  RCF_EXPORT std::wstring pathToWstring(const Path & p);
37  RCF_EXPORT Path wstringToPath(const std::wstring & ws);
38 
39  RCF_EXPORT Path makeCanonical(const Path& p);
40 
41  RCF_EXPORT void setLastWriteTime(const Path& p, std::uint64_t writeTime);
42  RCF_EXPORT std::uint64_t getLastWriteTime(const Path& p);
43 
44  class RCF_EXPORT FsWrappers
45  {
46  public:
47  static void copy(const RCF_FILESYSTEM_NS::path& p1, const RCF_FILESYSTEM_NS::path& p2);
48  static void rename(const RCF_FILESYSTEM_NS::path& p1, const RCF_FILESYSTEM_NS::path& p2);
49  static void remove(const RCF_FILESYSTEM_NS::path& p1);
50  static void create_directories(const RCF_FILESYSTEM_NS::path& p1);
51  static void remove_all(const RCF_FILESYSTEM_NS::path& p1);
52  };
53 
54 }
55 
56 #endif // ! INCLUDE_RCF_FILESYSTEM_HPP
57 
RCF_FILESYSTEM_NS::path Path
Typedef for standard C++ path type.
Definition: FileSystem.hpp:31
Definition: AmiIoHandler.hpp:23