| |
- __builtin__.object
-
- StorageList
- StorageSet
class StorageList(__builtin__.object) |
|
__init__(self, list=None)
Create a new storage list. A Python list of storage sets may be
supplied, from which to build the storage list. |
|
Methods defined here:
- __init__(...)
- x.__init__(...) initializes x; see x.__class__.__doc__ for signature
- add(...)
- add(storage_set)
Append a new storage set to the storage list.
- sets(...)
- sets()
Returns a python list of all the sets in the storage list.
Data and other attributes defined here:
- __new__ = <built-in method __new__ of type object at 0x6fca0>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
|
class StorageSet(__builtin__.object) |
|
__init__(self, filename=None)
Create a new storage set. If a file name is supplied, read a storage set
in from the specified file. |
|
Methods defined here:
- __contains__(...)
- __contains__(name) <==> name in self
- __init__(...)
- x.__init__(...) initializes x; see x.__class__.__doc__ for signature
- close(...)
- close()
Recursively close a storage set and all of its children sets and lists.
MUST be called when the storage set has finished being used. Garbage
collection will not delete the set.
- contains(...)
- contains(name)
Returns True or False if the set contains an entry by the given name.
- readBool(...)
- Same as readString, for booleans. Returns False if entry does not exist.
- readDouble(...)
- Same as readString, for floating points. Returns 0 if entry does not exist..
- readInt(...)
- Same as readString, for integers. Returns 0 if entry does not exist.
- readList(...)
- Same as readString, for storage lists. Returns an empty storage list
if entry does not exist.
- readSet(...)
- Same as readString, for storage sets. Returns an empty set if entry
does not exist.
- readString(...)
- readString(name)
Read a string value from the storage set. Return empty string if the
storage set does not contain an entry by the given name.
- storeBool(...)
- Same as storeString, for boolean values.
- storeDouble(...)
- Same as storeString, for floating point values.
- storeInt(...)
- Same as storeString, for integers.
- storeList(...)
- Same as storeString, for storage lists.
- storeSet(...)
- Same as storeString, for storage sets.
- storeString(...)
- storeString(name, val)
Store a string value in the storage set.
- write(...)
- write(filename)
Write the contents of a storage set to the specified file name.
Data and other attributes defined here:
- __new__ = <built-in method __new__ of type object at 0x6fac0>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
| |