Chemical Data Processing Library Python API - Version 1.1.1
|
Public Member Functions | |
None | __init__ (str file_name, str mode='r') |
Initializes the FileIOStream instance. More... | |
None | __init__ (str file_name, OpenMode mode=IOStream.OpenMode.IN) |
Initializes the FileIOStream instance. More... | |
str | readline (int size=-1) |
list | readlines (int size=-1) |
FileIOStream | 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) |
None | close () |
FileIOStream | __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) | |
name = property(getFileName) | |
Properties inherited from CDPL.Base.IStream | |
objectID = property(getObjectID) | |
Properties inherited from CDPL.Base.OStream | |
objectID = property(getObjectID) | |
None CDPL.Base.FileIOStream.__init__ | ( | str | file_name, |
str | mode = 'r' |
||
) |
Initializes the FileIOStream instance.
file_name | |
mode |
None CDPL.Base.FileIOStream.__init__ | ( | str | file_name, |
OpenMode | mode = IOStream.OpenMode.IN |
||
) |
Initializes the FileIOStream instance.
file_name | |
mode |
str CDPL.Base.FileIOStream.readline | ( | int | size = -1 | ) |
size |
list CDPL.Base.FileIOStream.readlines | ( | int | size = -1 | ) |
size |
FileIOStream CDPL.Base.FileIOStream.xreadlines | ( | ) |
str CDPL.Base.FileIOStream.read | ( | int | size = -1 | ) |
size |
int CDPL.Base.FileIOStream.tell | ( | ) |
int CDPL.Base.FileIOStream.tellr | ( | ) |
None CDPL.Base.FileIOStream.seek | ( | int | offs, |
int | whence = 0 |
||
) |
offs | |
whence |
None CDPL.Base.FileIOStream.seekr | ( | int | offs, |
int | whence = 0 |
||
) |
offs | |
whence |
str CDPL.Base.FileIOStream.next | ( | ) |
bool CDPL.Base.FileIOStream.isClosed | ( | ) |
str CDPL.Base.FileIOStream.getOpenModeString | ( | ) |
OpenMode CDPL.Base.FileIOStream.getOpenModeFlags | ( | ) |
None CDPL.Base.FileIOStream.write | ( | object | string | ) |
string |
None CDPL.Base.FileIOStream.writelines | ( | object | iterable | ) |
iterable |
int CDPL.Base.FileIOStream.tellw | ( | ) |
None CDPL.Base.FileIOStream.seekw | ( | int | offs, |
int | whence = 0 |
||
) |
offs | |
whence |
bool CDPL.Base.FileIOStream.getSoftSpace | ( | ) |
None CDPL.Base.FileIOStream.setSoftSpace | ( | bool | value | ) |
value |
FileIOStream CDPL.Base.FileIOStream.__iter__ | ( | ) |