OSubStream¶
-
class OSubStream¶
Bases:
ostreamAn ostream object that presents a subwindow into another ostream. The first character written to this stream will be the “start” character in the dest istream; no characters may be written to character “end” or later (unless end is zero).
The dest stream must be one that we can randomly seek within. The resulting OSubStream will also support arbitrary seeks.
Inheritance diagram
digraph inheritance79a70e8424 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "OSubStream" [URL="acron.core.OSubStream.html#acron.core.OSubStream",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "ostream" -> "OSubStream" [arrowsize=0.75,style=""]; "basic_ios_char" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "ios_base" -> "basic_ios_char" [arrowsize=0.75,style=""]; "ios_base" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",tooltip="// We need to expose one method in each class to force it to publish."]; "DTOOL_SUPER_BASE" -> "ios_base" [arrowsize=0.75,style=""]; "ostream" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "basic_ios_char" -> "ostream" [arrowsize=0.75,style=""]; }- OSubStream.__init__()¶
- OSubStream.open()¶
Starts the
SubStreamreading from the indicated dest, with the first character being the character at position “start” within the dest, for end - start total characters. The character at “end” within the dest will never be read; this will appear to be EOF.If end is zero, it indicates that the
OSubStreamwill continue until the end of the dest stream.