Home | Trees | Indices | Help |
---|
|
The Reader class.
Inherits from the builtin dictionary class, and thus functions much like a dictionary. For now, no base methods from dict are overwritten.
Reader functions primarily as a final stop before the dict class is called. Any Reader objects must inherit from this (directly or indirectly).
Can read in the data/input/outputfiles that are given to this class and store them.
Classes inheriting from Reader usually implement their own read and write methods, but some basic capabilities are available here.
|
|||
new empty dictionary |
|
||
|
|||
list |
|
||
Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
Initialize an Reader object by setting the contents dict. Additional args & kwargs passed to __init__ are passed to dict __init__.
|
Read a filename and store its contents in the Reader object. The contents are stored in a dictionary, with the filename as key. Note that one filename can refer to multiple files with the use of a wildcard character. This character can be replaced upon calling this method. The contents can be returned with the method getFile. If the file is not found, an empty list is stored instead. Additional args/kwargs are passed to DataIO.readFile (such as delimiter and replace_spaces)
|
Return the contents of the file of this Reader instance. Wildcard characters can be replaced. Additional keywords can be passed to the readFile method in case the file was not read yet.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Nov 7 18:01:58 2016 | http://epydoc.sourceforge.net |