13 #ifndef __NET_IODEVICE_H__
14 #define __NET_IODEVICE_H__
58 virtual bool atEnd()
const {
return pos() >=
size();}
59 virtual exint bytesAvailable()
const = 0;
68 virtual exint pos()
const = 0;
71 myMode = OpenMode::NotOpen;
88 return static_cast<uint32>(myMode)
89 & static_cast<uint32>(OpenMode::ReadOnly);
93 return static_cast<uint32>(myMode)
94 & static_cast<uint32>(OpenMode::WriteOnly);
104 #endif // __NET_IODEVICE_H__
virtual exint size() const
const UT_ErrorCode & error() const
virtual exint write(const UT_Array< char > &data)
virtual exint write(const char *data, exint max_size)
virtual bool seek(exint pos)
virtual bool isSequential() const
virtual bool open(OpenMode mode)
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
virtual exint write(const char *data)
virtual exint read(char *data, exint max_size)
UT_ENABLE_ENUM_BIT_FLAGS(NET_IODeviceOpenMode)
virtual bool atEnd() const
std::error_code UT_ErrorCode
const UT_StringHolder & mime() const
void setMime(const UT_StringHolder &mime)