8 #include "Arp/System/Commons/Io/Stream.hpp" 9 #include "Arp/System/Commons/Io/FileMode.hpp" 10 #include "Arp/System/Commons/Io/FileAccess.hpp" 13 namespace Arp {
namespace System {
namespace Ve
18 namespace Arp {
namespace System {
namespace Commons {
namespace Io
27 using IFileService = Arp::System::Ve::IFileService;
80 boolean CanRead(
void)
override;
84 boolean CanWrite(
void)
override;
88 boolean CanSeek(
void)
override;
93 size_t GetLength(
void)
override;
99 void SetLength(
size_t length)
override;
105 size_t GetPosition(
void)
override;
111 void SetPosition(
size_t position)
override;
117 void Flush(
void)
override;
124 size_t Seek(
size_t offset,
SeekOrigin origin)
override;
139 size_t Read(
byte* pBuffer,
size_t bufferSize,
size_t offset,
size_t count)
override;
154 void Write(
const byte* pBuffer,
size_t bufferSize,
size_t offset,
size_t count)
override;
157 void InternalDispose(
void)
override;
165 boolean canRead =
false;
166 boolean canWrite =
false;
167 boolean canSeek =
false;
171 IFileService* pFileService =
nullptr;
179 this->InternalConstructor(path, mode, FileAccess::ReadWrite);
184 this->InternalConstructor(path, mode, access);
189 this->InternalConstructor(path, mode, access, sync);
Specifies write access to the file. Data can be written to the file and the file pointer can be moved...
FileMode
Contains constants for specifying how the OS should open a file.
Definition: FileMode.hpp:23
Provides a generic view of a sequence of bytes.
Definition: Stream.hpp:19
Specifies read access to the file. Data can be read from the file and the file pointer can be moved...
Root namespace for the PLCnext API
FileAccess
Contains constants for specifying the access you want for a file. You can have Read, Write or ReadWrite access.
Definition: FileAccess.hpp:17
Exposes a Stream around a file, supporting read and write operations.
Definition: FileStream.hpp:24
SeekOrigin
Provides seek reference points. To seek to the end of a stream, call stream.Seek(0, SeekOrigin.End).
Definition: SeekOrigin.hpp:19
System components used by the System, Device, Plc or Io domains.
unsigned char byte
The Arp character type.
Definition: PrimitiveTypes.hpp:23