LibreOffice Module basic (master) 1
|
#include <iosys.hxx>
Public Member Functions | |
SbiIoSystem () | |
~SbiIoSystem () COVERITY_NOEXCEPT_FALSE | |
ErrCode | GetError () |
void | Shutdown () |
void | SetPrompt (const OString &r) |
void | SetChannel (short n) |
short | GetChannel () const |
void | ResetChannel () |
void | Open (short, std::string_view, StreamMode, SbiStreamFlags, short) |
void | Close () |
void | Read (OString &) |
char | Read () |
void | Write (std::u16string_view) |
SbiStream * | GetStream (short nChannel) const |
void | CloseAll () |
Private Member Functions | |
void | ReadCon (OString &) |
void | WriteCon (std::u16string_view) |
Private Attributes | |
SbiStream * | pChan [CHANNELS] |
OString | aPrompt |
OString | aIn |
OUString | aOut |
short | nChan |
ErrCode | nError |
SbiIoSystem::SbiIoSystem | ( | ) |
SbiIoSystem::~SbiIoSystem | ( | ) |
Definition at line 617 of file iosys.cxx.
References Shutdown().
void SbiIoSystem::Close | ( | ) |
Definition at line 654 of file iosys.cxx.
References SbiStream::Close(), ERRCODE_BASIC_BAD_CHANNEL, nChan, nError, and pChan.
Referenced by SbiRuntime::StepCLOSE().
void SbiIoSystem::CloseAll | ( | ) |
|
inline |
ErrCode SbiIoSystem::GetError | ( | ) |
Definition at line 622 of file iosys.cxx.
References ERRCODE_NONE, n, and nError.
Referenced by SbiRuntime::StepCHANNEL(), SbiRuntime::StepCLOSE(), SbiRuntime::StepINPUT(), SbiRuntime::StepLINPUT(), SbiRuntime::StepOPEN(), SbiRuntime::StepPRCHAR(), SbiRuntime::StepPRINT(), SbiRuntime::StepPRINTF(), and SbiRuntime::StepWRITE().
SbiStream * SbiIoSystem::GetStream | ( | short | nChannel | ) | const |
void SbiIoSystem::Open | ( | short | nCh, |
std::string_view | rName, | ||
StreamMode | nMode, | ||
SbiStreamFlags | nFlags, | ||
short | nLen | ||
) |
Definition at line 629 of file iosys.cxx.
References CHANNELS, ERRCODE_BASIC_BAD_CHANNEL, ERRCODE_BASIC_FILE_ALREADY_OPEN, ERRCODE_NONE, nChan, nError, SbiStream::Open(), and pChan.
Referenced by SbiRuntime::StepOPEN().
char SbiIoSystem::Read | ( | ) |
Definition at line 717 of file iosys.cxx.
References aIn, ch, ERRCODE_BASIC_BAD_CHANNEL, nChan, nError, pChan, SbiStream::Read(), and ReadCon().
void SbiIoSystem::Read | ( | OString & | rBuf | ) |
Definition at line 701 of file iosys.cxx.
References ERRCODE_BASIC_BAD_CHANNEL, nChan, nError, pChan, SbiStream::Read(), and ReadCon().
Referenced by SbiRuntime::StepINPUT(), and SbiRuntime::StepLINPUT().
|
private |
Definition at line 786 of file iosys.cxx.
References aPrompt, ERRCODE_BASIC_USER_ABORT, nError, OUStringToOString(), and RET_OK.
Referenced by Read().
|
inline |
Definition at line 100 of file iosys.hxx.
References nChan.
Referenced by SbiRuntime::StepCHANNEL0().
|
inline |
Definition at line 98 of file iosys.hxx.
Referenced by SbiRuntime::StepCHANNEL().
|
inline |
Definition at line 97 of file iosys.hxx.
References aPrompt.
Referenced by SbiRuntime::StepPROMPT().
void SbiIoSystem::Shutdown | ( | ) |
Definition at line 674 of file iosys.cxx.
References aOut, CHANNELS, SbiStream::Close(), Application::CreateMessageDialog(), Application::GetDefDialogParent(), i, n, nChan, nError, and pChan.
Referenced by SbiRuntime::StepCLOSE(), and ~SbiIoSystem().
void SbiIoSystem::Write | ( | std::u16string_view | rBuf | ) |
Definition at line 741 of file iosys.cxx.
References ERRCODE_BASIC_BAD_CHANNEL, nChan, nError, OUStringToOString(), pChan, SbiStream::Write(), and WriteCon().
Referenced by SbiRuntime::StepPRCHAR(), SbiRuntime::StepPRINT(), SbiRuntime::StepPRINTF(), and SbiRuntime::StepWRITE().
|
private |
Definition at line 803 of file iosys.cxx.
References aOut, Application::CreateMessageDialog(), ERRCODE_BASIC_USER_ABORT, Application::GetDefDialogParent(), n1, n2, nError, and RET_OK.
Referenced by Write().
|
private |
Definition at line 87 of file iosys.hxx.
Referenced by Shutdown(), and WriteCon().
|
private |
Definition at line 85 of file iosys.hxx.
Referenced by ReadCon(), and SetPrompt().
|
private |
Definition at line 88 of file iosys.hxx.
Referenced by Close(), GetChannel(), Open(), Read(), ResetChannel(), SbiIoSystem(), SetChannel(), Shutdown(), and Write().
|
private |
Definition at line 89 of file iosys.hxx.
Referenced by Close(), CloseAll(), GetError(), Open(), Read(), ReadCon(), SbiIoSystem(), Shutdown(), Write(), and WriteCon().
Definition at line 84 of file iosys.hxx.
Referenced by Close(), CloseAll(), GetStream(), Open(), Read(), SbiIoSystem(), Shutdown(), and Write().