Labrador::Common::Data
use Labrador::Common::Data; my $data = new Labrador::Common::Data($config); $data->register_variable("AnArray", 'ARRAY', 1); my $array_ref = $data->obtain_variable("AnArray");
This module is a generic global data store, supporting persistence.
NB: This module's API should be treated as unstable, as I intend to redesign it internally, so that separate subclasses can be created.
Constructs a new data object. Only parameter is an instance of the the config object,
Register an array for use
Registers a variable for use. $type is one of 'ARRAY', 'HASH', 'SCALAR'. $persistent marks whether the contents of the variable should be stored on disk.
For all partially persistent data structures, updates the copy of the data structure on disk.
Unties any persistent variables, so this object can be safely destroyed. Automatically calls checkpoint first.
Should not be called directly
Tie a partial persistent variable.
Unties a partially persistent variable.
Unties a fully partitially persistent variable
Ties a fully persistent variable
Load the module called $name.
$Revision: 1.10 $