5#include "Containers/ContainersFwd.h"
11
12
13class FGenericPlatformNamedPipe
18 FGenericPlatformNamedPipe();
21 virtual ~FGenericPlatformNamedPipe();
23 FGenericPlatformNamedPipe(
const FGenericPlatformNamedPipe&) =
delete;
24 FGenericPlatformNamedPipe& operator=(
const FGenericPlatformNamedPipe&) =
delete;
29 virtual bool Create(
const FString& PipeName,
bool bServer,
bool bAsync) {
return false; }
32 virtual const FString& GetName()
const
38 virtual bool Destroy() {
return false; }
41 virtual bool OpenConnection() {
return false; }
44 virtual bool BlockForAsyncIO() {
return false; }
47 virtual bool IsReadyForRW()
const {
return false; }
50 virtual bool UpdateAsyncStatus() {
return false; }
53 virtual bool WriteBytes(int32 NumBytes,
const void* Data) {
return false; }
56 inline bool WriteInt32(int32 In)
58 return WriteBytes(
sizeof(int32), &In);
62 virtual bool ReadBytes(int32 NumBytes,
void* OutData) {
return false; }
65 inline bool ReadInt32(int32& Out)
67 return ReadBytes(
sizeof(int32), &Out);
71 virtual bool IsCreated()
const {
return false; }
74 virtual bool HasFailed()
const {
return true; }