Loading [MathJax]/extensions/tex2jax.js
Chemical Data Processing Library Python API - Version 1.3.0
All Classes Namespaces Functions Variables Pages
Public Member Functions | Properties | List of all members
CDPL.Base.StringIOStream Class Reference
+ Inheritance diagram for CDPL.Base.StringIOStream:

Public Member Functions

None __init__ (str string='', str mode='r+')
 Initializes the StringIOStream instance. More...
 
None __init__ (str string='', OpenMode mode=IOStream.OpenMode(24))
 Initializes the StringIOStream instance. More...
 
str readline (int size=-1)
 
list readlines (int size=-1)
 
StringIOStream xreadlines ()
 
str read (int size=-1)
 
int tell ()
 
int tellr ()
 
None seek (int offs, int whence=0)
 
None seekr (int offs, int whence=0)
 
str next ()
 
bool isClosed ()
 
str getOpenModeString ()
 
OpenMode getOpenModeFlags ()
 
None flush ()
 
None write (object string)
 
None writelines (object iterable)
 
int tellw ()
 
None seekw (int offs, int whence=0)
 
bool getSoftSpace ()
 
None setSoftSpace (bool value)
 
bool isatty ()
 
None truncate (int length=-1)
 
str getvalue ()
 
None setvalue (str value)
 
StringIOStream __iter__ ()
 
- Public Member Functions inherited from CDPL.Base.IStream
int getObjectID ()
 Returns the numeric identifier (ID) of the wrapped C++ class instance. More...
 
- Public Member Functions inherited from CDPL.Base.OStream
int getObjectID ()
 Returns the numeric identifier (ID) of the wrapped C++ class instance. More...
 

Properties

 closed = property(isClosed)
 
 mode = property(getOpenModeString)
 
 modeFlags = property(getOpenModeFlags)
 
 softspace = property(getSoftSpace, setSoftSpace)
 
 value = property(getvalue, setvalue)
 
- Properties inherited from CDPL.Base.IStream
 objectID = property(getObjectID)
 
- Properties inherited from CDPL.Base.OStream
 objectID = property(getObjectID)
 

Additional Inherited Members

- Static Public Attributes inherited from CDPL.Base.IStream
 STD_IN = \brief The standard input stream of the current process.
 The standard input stream of the current process.
 
- Static Public Attributes inherited from CDPL.Base.OStream
 STD_OUT = \brief The standard output stream of the current process.
 The standard output stream of the current process.
 
 STD_ERR = \brief The standard error stream of the current process.
 The standard error stream of the current process.
 

Constructor & Destructor Documentation

◆ __init__() [1/2]

None CDPL.Base.StringIOStream.__init__ ( str   string = '',
str   mode = 'r+' 
)

Initializes the StringIOStream instance.

Parameters
string
mode

◆ __init__() [2/2]

None CDPL.Base.StringIOStream.__init__ ( str   string = '',
OpenMode   mode = IOStream.OpenMode(24) 
)

Initializes the StringIOStream instance.

Parameters
string
mode

Member Function Documentation

◆ readline()

str CDPL.Base.StringIOStream.readline ( int   size = -1)
Parameters
size
Returns

◆ readlines()

list CDPL.Base.StringIOStream.readlines ( int   size = -1)
Parameters
size
Returns

◆ xreadlines()

StringIOStream CDPL.Base.StringIOStream.xreadlines ( )
Returns

◆ read()

str CDPL.Base.StringIOStream.read ( int   size = -1)
Parameters
size
Returns

◆ tell()

int CDPL.Base.StringIOStream.tell ( )
Returns

◆ tellr()

int CDPL.Base.StringIOStream.tellr ( )
Returns

◆ seek()

None CDPL.Base.StringIOStream.seek ( int  offs,
int   whence = 0 
)
Parameters
offs
whence

◆ seekr()

None CDPL.Base.StringIOStream.seekr ( int  offs,
int   whence = 0 
)
Parameters
offs
whence

◆ next()

str CDPL.Base.StringIOStream.next ( )
Returns

◆ isClosed()

bool CDPL.Base.StringIOStream.isClosed ( )
Returns

◆ getOpenModeString()

str CDPL.Base.StringIOStream.getOpenModeString ( )
Returns

◆ getOpenModeFlags()

OpenMode CDPL.Base.StringIOStream.getOpenModeFlags ( )
Returns

◆ write()

None CDPL.Base.StringIOStream.write ( object  string)
Parameters
string

◆ writelines()

None CDPL.Base.StringIOStream.writelines ( object  iterable)
Parameters
iterable

◆ tellw()

int CDPL.Base.StringIOStream.tellw ( )
Returns

◆ seekw()

None CDPL.Base.StringIOStream.seekw ( int  offs,
int   whence = 0 
)
Parameters
offs
whence

◆ getSoftSpace()

bool CDPL.Base.StringIOStream.getSoftSpace ( )
Returns

◆ setSoftSpace()

None CDPL.Base.StringIOStream.setSoftSpace ( bool  value)
Parameters
value

◆ isatty()

bool CDPL.Base.StringIOStream.isatty ( )
Returns

◆ truncate()

None CDPL.Base.StringIOStream.truncate ( int   length = -1)
Parameters
length

◆ getvalue()

str CDPL.Base.StringIOStream.getvalue ( )
Returns

◆ setvalue()

None CDPL.Base.StringIOStream.setvalue ( str  value)
Parameters
value

◆ __iter__()

StringIOStream CDPL.Base.StringIOStream.__iter__ ( )
Returns