Package gmisclib :: Module chunkio :: Class stringchunk
[frames] | no frames]

Class stringchunk

source code


Low level operations: splitting a string into chunks. This class represents a string as a sequence of white-space separated chunks of data.

Instance Methods
 
__init__(self, s)
Constructor.
source code
 
more(self)
Returns: zero if the data source is empty; nonzero if there is more data.
source code
 
readchunk(self)
Read in the next white-space delimited chunk of text.
source code
 
groupend(self) (Inherited from gmisclib.chunkio.chunk) source code
 
groupstart(self) (Inherited from gmisclib.chunkio.chunk) source code
 
read_NumArray(self) (Inherited from gmisclib.chunkio.chunk) source code
 
read_array(self, fcn)
Read an array of data values. (Inherited from gmisclib.chunkio.chunk)
source code
 
read_array_of(self, fcn)
Read an array of data values. (Inherited from gmisclib.chunkio.chunk)
source code
 
read_dict(self, fcn)
Read a dictionary of data values. (Inherited from gmisclib.chunkio.chunk)
source code
 
read_dict_of(self, fcn)
Read a dictionary of data values. (Inherited from gmisclib.chunkio.chunk)
source code
 
read_float(self) (Inherited from gmisclib.chunkio.chunk) source code
 
read_tuple(self, fcn)
Read a tuple of data values. (Inherited from gmisclib.chunkio.chunk)
source code
Class Variables
  __doc__ = """Low level operations: splitting a string into chu...
Method Details

__init__(self, s)
(Constructor)

source code 

Constructor.

Overrides: chunk.__init__

more(self)

source code 

Returns zero if the data source is empty. Returns nonzero if there is more data.

Returns:
zero if the data source is empty; nonzero if there is more data.
Overrides: chunk.more

readchunk(self)

source code 

Read in the next white-space delimited chunk of text.

Overrides: chunk.readchunk

Class Variable Details

__doc__

Value:
"""Low level operations: splitting a string into chunks.
		This class represents a string as a sequence
		of white-space separated chunks of data.
		"""