8#include "Arp/Base/Rsc/Commons/Rsc.hpp"
9#include "Arp/Base/Rsc/Commons/IRscService.hpp"
11#include "Arp/Base/Rsc/Commons/RscStream.hpp"
12#include "Arp/Base/Rsc/Commons/RscString.hxx"
13#include "Arp/System/Commons/Services/Io/FileSystemError.hpp"
14#include "Arp/System/Commons/Services/Io/TraitItem.hpp"
15#include "Arp/System/Commons/Services/Io/Traits.hpp"
22using namespace Arp::Base::Rsc::Commons;
40 using Ptr = std::shared_ptr<IFileService>;
This is the base interface of all Rsc services.
Definition: IRscService.hpp:22
std::shared_ptr< IRscService > Ptr
The shared_ptr type of IRscService.
Definition: IRscService.hpp:25
This class might be used to marshal unstructured stream data as bytes.
Definition: RscStream.hpp:29
Interface for service proxy factories to create service proxies used by RSC clients.
Definition: IRscServiceProxyFactory.hpp:22
Provides common file operations for reading and writing files as well as deleting/moving/copying file...
Definition: IFileService.hpp:38
virtual FileSystemError Delete(const RscString< 512 > &filePath)=0
Deletes the specified file.
virtual FileSystemError Read(Traits fileTraits, const RscString< 512 > &filePath, RscStream data, std::vector< TraitItem > &traitItems)=0
Reads the specified file from device.
IFileService(void)=default
Constructs an IFileService instance.
virtual boolean Exists(const RscString< 512 > &path)=0
Checks if the specified file exists.
virtual FileSystemError Move(boolean createDirectory, boolean overwrite, const RscString< 512 > &sourceFilePath, const RscString< 512 > &destinationFilePath)=0
Moves the specified file.
virtual FileSystemError Write(const RscString< 512 > &filePath, boolean overwrite, const std::vector< TraitItem > &traitItems, RscStream data)=0
Writes the given data to the specified file.
virtual FileSystemError Copy(boolean createDirectory, boolean overwrite, const RscString< 512 > &sourceFilePath, const RscString< 512 > &destinationFilePath)=0
Copies the specified files.
Namespace for services to access the filesystem
Traits
This enum is used by several file services to specify the file traits to get or set,...
Definition: Traits.hpp:19
FileSystemError
This enum is used by several file operations.
Definition: FileSystemError.hpp:19