Finance::GeniusTrader::Serializable - Add XML serialization functions to any object
The functions available in Finance::GeniusTrader::Serializable can add serialization support to any simple perl object.
The various functions will serialize any hash, array or scalar value blessed as an object.
Any object can be made serializable by adding Finance::GeniusTrader::Serializable in @ISA :
our @ISA = qw(Finance::GeniusTrader::Serializable);
All hash items whose names start with an underscore won't be stored in the serialization process.
Any reference to something else than a hash, array or scalar value will be ignored (including function and file descriptor).
Once an object is created from scratch based on a serialization dump, $object->init_after_load() is called so that the object has a chance to restore things that may have not been stored (such as reference to internal functions).
We may define later other hooks that will let the module personalize the name of elements used to store the object in the XML file.
$self->as_string()
my $a = Module->create_from_string()
$self->store("file" | \*FILE)
my $a = Module->create_from_file("file" | \*FILE)
To install Finance::GeniusTrader, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::GeniusTrader
CPAN shell
perl -MCPAN -e shell install Finance::GeniusTrader
For more information on module installation, please visit the detailed CPAN module installation guide.