PLCnext API Documentation 26.6.0.38
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
45class ARP_EXPORT IFileService2 : public IFileService
46{
47public: // usings
48 using Ptr = std::shared_ptr<IFileService2>;
57
58public: // construction/destruction
60 IFileService2(void) = default;
61
62public: // static policy operation
63 static IRscServiceProxyFactory& GetProxyFactory(void);
64
65public: // abstract operations
73 virtual void ExistsMany(ExistsManyPathsDelegate pathsDelegate, ExistsManyResultDelegate resultDelegate) = 0;
74
82 virtual void WriteMany(WriteManyWriteFileDataDelegate writeFileDataDelegate, WriteManyResultDelegate resultDelegate) = 0;
83
89 virtual void ReadMany(ReadManyReadFileInfoDelegate readFileInfoDelegate, ReadManyReadFileDataDelegate readFileDataDelegate) = 0;
90
98 virtual void DeleteMany(DeleteManyFilePathsDelegate filePathsDelegate, DeleteManyResultDelegate resultDelegate) = 0;
99};
100
101} // 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:46
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:40
Namespace for services to access the filesystem