PLCnext API Documentation  21.0.0.35466
FileServiceProxy.hpp
1 //
3 // Copyright PHOENIX CONTACT Electronics GmbH
4 //
6 #pragma once
7 #include "Arp/System/Rsc/Services/RscServiceProxyBase.hxx"
8 #include "IFileService.hpp"
9 
10 // DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED BY IFileService.cs
11 
12 namespace Arp { namespace System { namespace Commons { namespace Services { namespace Io
13 {
14 
15 using namespace Arp;
16 
17 class FileServiceProxy : public RscServiceProxyBase<IFileService>
18 {
19 public: // construction/destruction
21  FileServiceProxy(RscHandle providerHandle, RscHandle serviceHandle, RscClient& rscClient);
23  virtual ~FileServiceProxy(void);
24 
25 public: // IFileService operations
26  boolean Exists(const RscString<512>& path)override;
27  FileSystemError Write(const RscString<512>& filePath, boolean overwrite, const std::vector<TraitItem>& traitItems, RscStream& data)override;
28  FileSystemError Read(Traits fileTraits, const RscString<512>& filePath, RscStream& data, std::vector<TraitItem>& traitItems)override;
29  FileSystemError Delete(const RscString<512>& filePath)override;
30  FileSystemError Move(boolean createDirectory, boolean overwrite, const RscString<512>& sourceFilePath, const RscString<512>& destinationFilePath)override;
31  FileSystemError Copy(boolean createDirectory, boolean overwrite, const RscString<512>& sourceFilePath, const RscString<512>& destinationFilePath)override;
32 
33 private: // deleted methods (for non-copyable classes)
34  FileServiceProxy(const FileServiceProxy& arg) = delete;
35  FileServiceProxy& operator=(const FileServiceProxy& arg) = delete;
36 };
37 
39 // inline methods of class FileServiceProxy
41 {
42 }
43 
44 }}}}} // end of namespace Arp::System::Commons::Services::Io
Definition: FileServiceProxy.hpp:17
Specifies write access to the file. Data can be written to the file and the file pointer can be moved...
Traits
This enum is used by several file services to specify the file traits to get or set, respectively.
Definition: Traits.hpp:20
FileSystemError
This enum is used by several file operations.
Definition: FileSystemError.hpp:20
Specifies read access to the file. Data can be read from the file and the file pointer can be moved...
virtual ~FileServiceProxy(void)
Destructs this instance and frees all resouces.
Definition: FileServiceProxy.hpp:40
Enables Rsc services to marshal large data packets as stream.
Definition: RscStream.hpp:17
Root namespace for the PLCnext API
System components used by the System, Device, Plc or Io domains.