Bases: core.serialization.AbstractLoader
Specific loader that is used to manipulate PlantGL objects
Parameters: | filename -- filename to convert into python object |
---|---|
Returns: | a python object interpreted from string "text" |
Bases: object
Specific loader that is used to manipulate PlantGL objects
Bases: object
Bases: core.serialization.AbstractSaver
Bases: core.serialization.AbstractLoader
Specific loader that use cPickle.loads
Parameters: | filename -- filename to convert into python object |
---|---|
Returns: | a python object interpreted from filename |
Bases: core.serialization.AbstractSaver
Specific saver that use cPickle.dump
Bases: object
Classical loader that read file
Parameters: | filename -- filename to convert into python object |
---|---|
Returns: | a python object interpreted from string "text" |
Bases: core.serialization.AbstractSaver
Classical saver that write str(obj) into file
Bases: object
Generic interface class for savers
Bases: object
Like "load" but update, if available, an existing object and return it. If no update is available, method must return new instance.
Ex:
data = MyData()
loader = MyLoader()
data2 = data.update('test.dat', data)
data is data2 # True if update is supported, else False
Bases: object
Generic interface class for savers
Bases: object
Generic interface class for savers
This method must return an iterable object, ideally an iterator
Bases: object
Classical loader that read file and try to eval object
Parameters: | filename -- filename to convert into python object |
---|---|
Returns: | a python object interpreted from string "text" |