LibreOffice Module basic (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SbiIoSystem Class Reference

#include <iosys.hxx>

Collaboration diagram for SbiIoSystem:
[legend]

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)
 
SbiStreamGetStream (short nChannel) const
 
void CloseAll ()
 

Private Member Functions

void ReadCon (OString &)
 
void WriteCon (std::u16string_view)
 

Private Attributes

SbiStreampChan [CHANNELS]
 
OString aPrompt
 
OString aIn
 
OUString aOut
 
short nChan
 
ErrCode nError
 

Detailed Description

Definition at line 82 of file iosys.hxx.

Constructor & Destructor Documentation

◆ SbiIoSystem()

SbiIoSystem::SbiIoSystem ( )

Definition at line 607 of file iosys.cxx.

References ERRCODE_NONE, i, nChan, nError, and pChan.

◆ ~SbiIoSystem()

SbiIoSystem::~SbiIoSystem ( )

Definition at line 617 of file iosys.cxx.

References Shutdown().

Member Function Documentation

◆ Close()

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().

◆ CloseAll()

void SbiIoSystem::CloseAll ( )

Definition at line 769 of file iosys.cxx.

References CHANNELS, SbiStream::Close(), i, n, nError, and pChan.

◆ GetChannel()

short SbiIoSystem::GetChannel ( ) const
inline

Definition at line 99 of file iosys.hxx.

References nChan.

Referenced by SbiRuntime::StepINPUT().

◆ GetError()

ErrCode SbiIoSystem::GetError ( )

◆ GetStream()

SbiStream * SbiIoSystem::GetStream ( short  nChannel) const

Definition at line 759 of file iosys.cxx.

References CHANNELS, and pChan.

◆ Open()

void SbiIoSystem::Open ( short  nCh,
std::string_view  rName,
StreamMode  nMode,
SbiStreamFlags  nFlags,
short  nLen 
)

◆ Read() [1/2]

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().

◆ Read() [2/2]

void SbiIoSystem::Read ( OString &  rBuf)

◆ ReadCon()

void SbiIoSystem::ReadCon ( OString &  rIn)
private

Definition at line 786 of file iosys.cxx.

References aPrompt, ERRCODE_BASIC_USER_ABORT, nError, OUStringToOString(), and RET_OK.

Referenced by Read().

◆ ResetChannel()

void SbiIoSystem::ResetChannel ( )
inline

Definition at line 100 of file iosys.hxx.

References nChan.

Referenced by SbiRuntime::StepCHANNEL0().

◆ SetChannel()

void SbiIoSystem::SetChannel ( short  n)
inline

Definition at line 98 of file iosys.hxx.

References n, and nChan.

Referenced by SbiRuntime::StepCHANNEL().

◆ SetPrompt()

void SbiIoSystem::SetPrompt ( const OString &  r)
inline

Definition at line 97 of file iosys.hxx.

References aPrompt.

Referenced by SbiRuntime::StepPROMPT().

◆ Shutdown()

void SbiIoSystem::Shutdown ( )

◆ Write()

void SbiIoSystem::Write ( std::u16string_view  rBuf)

◆ WriteCon()

void SbiIoSystem::WriteCon ( std::u16string_view  rText)
private

Member Data Documentation

◆ aIn

OString SbiIoSystem::aIn
private

Definition at line 86 of file iosys.hxx.

Referenced by Read().

◆ aOut

OUString SbiIoSystem::aOut
private

Definition at line 87 of file iosys.hxx.

Referenced by Shutdown(), and WriteCon().

◆ aPrompt

OString SbiIoSystem::aPrompt
private

Definition at line 85 of file iosys.hxx.

Referenced by ReadCon(), and SetPrompt().

◆ nChan

short SbiIoSystem::nChan
private

Definition at line 88 of file iosys.hxx.

Referenced by Close(), GetChannel(), Open(), Read(), ResetChannel(), SbiIoSystem(), SetChannel(), Shutdown(), and Write().

◆ nError

ErrCode SbiIoSystem::nError
private

Definition at line 89 of file iosys.hxx.

Referenced by Close(), CloseAll(), GetError(), Open(), Read(), ReadCon(), SbiIoSystem(), Shutdown(), Write(), and WriteCon().

◆ pChan

SbiStream* SbiIoSystem::pChan[CHANNELS]
private

Definition at line 84 of file iosys.hxx.

Referenced by Close(), CloseAll(), GetStream(), Open(), Read(), SbiIoSystem(), Shutdown(), and Write().


The documentation for this class was generated from the following files: