LibreOffice Module basic (master) 1
|
#include <iosys.hxx>
Public Member Functions | |
SbiStream () | |
~SbiStream () | |
ErrCode const & | Open (std::string_view, StreamMode, SbiStreamFlags, short) |
ErrCode const & | Close () |
ErrCode | Read (OString &, sal_uInt16=0, bool bForceReadingPerByte=false) |
ErrCode const & | Read (char &) |
ErrCode | Write (const OString &) |
bool | IsText () const |
bool | IsRandom () const |
bool | IsBinary () const |
bool | IsSeq () const |
bool | IsAppend () const |
short | GetBlockLen () const |
SbiStreamFlags | GetMode () const |
sal_uInt64 | GetLine () const |
void | SetExpandOnWriteTo (sal_uInt64 n) |
void | ExpandFile () |
SvStream * | GetStrm () |
Private Member Functions | |
void | MapError () |
Private Attributes | |
std::unique_ptr< SvStream > | pStrm |
sal_uInt64 | nExpandOnWriteTo |
OString | aLine |
sal_uInt64 | nLine |
short | nLen |
SbiStreamFlags | nMode |
ErrCode | nError |
ErrCode const & SbiStream::Close | ( | ) |
Definition at line 484 of file iosys.cxx.
References MapError(), nError, and pStrm.
Referenced by SbiIoSystem::Close(), SbiIoSystem::CloseAll(), and SbiIoSystem::Shutdown().
void SbiStream::ExpandFile | ( | ) |
Definition at line 539 of file iosys.cxx.
References nExpandOnWriteTo, pStrm, and STREAM_SEEK_TO_END.
Referenced by Write().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 106 of file iosys.cxx.
References ERRCODE_BASIC_ACCESS_DENIED, ERRCODE_BASIC_BAD_ARGUMENT, ERRCODE_BASIC_FILE_NOT_FOUND, ERRCODE_BASIC_IO_ERROR, ERRCODE_BASIC_NO_MEMORY, ERRCODE_BASIC_PATH_NOT_FOUND, ERRCODE_BASIC_TOO_MANY_FILES, ERRCODE_NONE, nError, pStrm, SVSTREAM_ACCESS_DENIED, SVSTREAM_FILE_NOT_FOUND, SVSTREAM_INVALID_PARAMETER, SVSTREAM_OUTOFMEMORY, SVSTREAM_PATH_NOT_FOUND, and SVSTREAM_TOO_MANY_OPEN_FILES.
ErrCode const & SbiStream::Open | ( | std::string_view | rName, |
StreamMode | nStrmMode, | ||
SbiStreamFlags | nFlags, | ||
short | nL | ||
) |
Definition at line 418 of file iosys.cxx.
References aStr, ERRCODE_IO_GENERAL, Exception, getFullPath(), comphelper::getProcessComponentContext(), hasUno(), IsAppend(), IsBinary(), IsRandom(), MapError(), nError, nExpandOnWriteTo, nLen, nLine, nMode, pStrm, and STREAM_SEEK_TO_END.
Referenced by SbiIoSystem::Open().
ErrCode const & SbiStream::Read | ( | char & | ch | ) |
ErrCode SbiStream::Read | ( | OString & | rBuf, |
sal_uInt16 | n = 0 , |
||
bool | bForceReadingPerByte = false |
||
) |
Definition at line 494 of file iosys.cxx.
References aBuffer, ERRCODE_BASIC_BAD_RECORD_LENGTH, ERRCODE_BASIC_READ_PAST_EOF, IsText(), MapError(), n, nError, nExpandOnWriteTo, nLen, nLine, comphelper::string::padToLength(), pStrm, and read_uInt8s_ToOString().
Referenced by Read(), and SbiIoSystem::Read().
|
inline |
Definition at line 77 of file iosys.hxx.
References n, and nExpandOnWriteTo.
ErrCode SbiStream::Write | ( | const OString & | rBuf | ) |
Definition at line 570 of file iosys.cxx.
References aLine, ERRCODE_BASIC_BAD_RECORD_LENGTH, ExpandFile(), IsAppend(), IsText(), MapError(), nError, nLen, pStrm, and STREAM_SEEK_TO_END.
Referenced by SbiIoSystem::Write().
|
private |
|
private |
|
private |
Definition at line 52 of file iosys.hxx.
Referenced by ExpandFile(), Open(), Read(), and SetExpandOnWriteTo().
|
private |
|
private |
|
private |
Definition at line 56 of file iosys.hxx.
Referenced by GetMode(), IsAppend(), IsBinary(), IsRandom(), IsSeq(), IsText(), and Open().
|
private |
Definition at line 51 of file iosys.hxx.
Referenced by Close(), ExpandFile(), GetStrm(), MapError(), Open(), Read(), and Write().