TM::Materialized::Stream
Topic Maps, abstract class for maps with stream based input/output drivers
- Provided by: libtm-perl (Version: 1.56-10)
- Report a bug
Topic Maps, abstract class for maps with stream based input/output drivers
# this class will never be directly used for instantiation # see the description in TM and individual low-level drivers (AsTMa, ...)
This class is a subclass of TM, so it implements map objects. It is abstract, though, as it only defined how a stream-based driver package should behave. It may thus be inherited by classes which implement external formats (TM::Materialized::AsTMa, TM::Materialized::XML, ....).
The constructor of implementations should expect a hash as parameter containing the field(s) from TM and one or more of the following:
If several fields ("file", "url", "inline") are specified, it is undefined which one will be taken.
Examples (using AsTMa):
# opening from an AsTMa= file $atm = new TM::Materialized::AsTMa (file => 'here.atm'); # why need a file? files are evil, anyway $atm = new TM::Materialized::AsTMa (inline => '# this is AsTMa');
TM
Copyright 200[2-6], Robert Barta <drrho@cpan.org>, 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