NAME
XTM::IO - Topic Map management, abstract class for input/output
SYNOPSIS
# this class will never be directly used
DESCRIPTION
This is the abstract class defining how an IO package should behave and may thus be inherited by classes which implement external formats (XTM::AsTMa, XTM::XML).
INTERFACE
Constructor
The constructor should expect a hash as parameter containing at least the following fields:
- auto_complete (default: 1) If
auto_complete
is set, the loading mechanism is directed to automatically generate all topics which are referenced in a map but which are not explicitely defined. It is up to the implementation how these topics are created and which characteristics they have.
Methods
The methods sync_in
, sync_out
and last_mod
implement the methods from the abstract class XTM::IO
last_mod
-
returns the UNIX time when the resource has been modified last.
undef
is returned if the result cannot be determined. sync_in
-
actually loads an XTM resource and returns a XTM::Memory object.
sync_out
-
is supposed to save the XTM::Memory content onto the resource.
SEE ALSO
AUTHOR INFORMATION
Copyright 2002, Robert Barta <rho@telecoma.net>, All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. http://www.perl.com/perl/misc/Artistic.html