PLCnext API Documentation 25.0.2.69
IFileService2.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
8#include "Arp/Base/Rsc/Commons/Rsc.hpp"
9#include "Arp/Base/Rsc/Commons/IRscService.hpp"
10#include "Arp/Base/Rsc/Commons/IRscReadEnumerator.hxx"
11#include "Arp/Base/Rsc/Commons/IRscWriteEnumerator.hxx"
12#include "Arp/Base/Core/delegate.hxx"
13#include "Arp/System/Commons/Services/Io/IFileService.hpp"
14#include "Arp/Base/Rsc/Commons/RscString.hxx"
15#include "Arp/System/Commons/Services/Io/FileSystemError.hpp"
16#include "Arp/System/Commons/Services/Io/ReadFileData.hpp"
17#include "Arp/System/Commons/Services/Io/ReadFileInfo.hpp"
18#include "Arp/System/Commons/Services/Io/WriteFileData.hpp"
19
20// DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED BY IFileService2.cs
21
23{
24
25using namespace Arp::Base::Rsc::Commons;
26
39class ARP_EXPORT IFileService2 : public IFileService
40{
41public: // usings
42 using Ptr = std::shared_ptr<IFileService2>;
51
52public: // construction/destruction
54 IFileService2(void) = default;
55
56public: // static policy operation
57 static IRscServiceProxyFactory& GetProxyFactory(void);
58
59public: // abstract operations
67 virtual void ExistsMany(ExistsManyPathsDelegate pathsDelegate, ExistsManyResultDelegate resultDelegate) = 0;
68
76 virtual void WriteMany(WriteManyWriteFileDataDelegate writeFileDataDelegate, WriteManyResultDelegate resultDelegate) = 0;
77
83 virtual void ReadMany(ReadManyReadFileInfoDelegate readFileInfoDelegate, ReadManyReadFileDataDelegate readFileDataDelegate) = 0;
84
92 virtual void DeleteMany(DeleteManyFilePathsDelegate filePathsDelegate, DeleteManyResultDelegate resultDelegate) = 0;
93};
94
95} // end of namespace Arp::System::Commons::Services::Io
Prototyping of delegate template.
Definition: delegate.hxx:14
Interface for reading a arrays or enumerations.
Definition: IRscReadEnumerator.hxx:19
std::shared_ptr< IRscService > Ptr
The shared_ptr type of IRscService.
Definition: IRscService.hpp:25
Interface for writing an array enumeration or enumeration of unspefied length.
Definition: IRscWriteEnumerator.hxx:20
Interface for service proxy factories to create service proxies used by RSC clients.
Definition: IRscServiceProxyFactory.hpp:22
Provides common file operations for several files in a single call.
Definition: IFileService2.hpp:40
virtual void ReadMany(ReadManyReadFileInfoDelegate readFileInfoDelegate, ReadManyReadFileDataDelegate readFileDataDelegate)=0
Reads the specified files.
IFileService2(void)=default
Constructs an IFileService2 instance.
virtual void ExistsMany(ExistsManyPathsDelegate pathsDelegate, ExistsManyResultDelegate resultDelegate)=0
Checks if the specified files exist.
virtual void DeleteMany(DeleteManyFilePathsDelegate filePathsDelegate, DeleteManyResultDelegate resultDelegate)=0
Deletes the specified files.
virtual void WriteMany(WriteManyWriteFileDataDelegate writeFileDataDelegate, WriteManyResultDelegate resultDelegate)=0
Writes the given data to the specified files.
Provides common file operations for reading and writing files as well as deleting/moving/copying file...
Definition: IFileService.hpp:38
Namespace for services to access the filesystem