Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

AI::Categorizer::Storable
Saving and Restoring State

AI::Categorizer::Storable - Saving and Restoring State


NAME

AI::Categorizer::Storable - Saving and Restoring State


SYNOPSIS


  $object->save_state($path);

  ... time passes ...

  $object = Class->restore_state($path);

  

=head1 DESCRIPTION

This class implements methods for storing the state of an object to a file and restoring from that file later. In AI::Categorizer it is generally used in order to let data persist across multiple invocations of a program.


METHODS

save_state($path)
This object method saves the object to disk for later use. The $path argument indicates the place on disk where the object should be saved.

restore_state($path)
This class method reads the file specified by $path and returns the object that was previously stored there using save_state().


AUTHOR

Ken Williams, ken@mathforum.org


COPYRIGHT

Copyright 2000-2003 Ken Williams. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


SEE ALSO

AI::Categorizer(3), Storable(3)

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy