TM::Materialized::CTM - Topic Maps, Parsing of CTM instances.


TM documentation Contained in the TM distribution.

Index


Code Index:

NAME

Top

TM::Materialized::CTM - Topic Maps, Parsing of CTM instances.

SYNOPSIS

Top

  use TM::Materialized::CTM;
  my $tm = new TM::Materialized::CTM (inline => '....CTM code here...');
  $tm->sync_in;
  # ...

  # or
  my $tm = new TM::Materialized::CTM (file => 'test.ctm');
  # ...
  $tm->sync;

DESCRIPTION

Top

This package provides parsing functionality for CTM instances. CTM is a textual shorthand notation for Topic Map authoring. See TM::Serializable::CTM for details.

NOTE: This is EXPERIMENTAL.

INTERFACE

Top

Constructor

The constructor expects a hash as described in TM::Materialized::Stream.

SEE ALSO

Top

TM, TM::Materialized::Stream, TM::Serializable::CTM

AUTHOR INFORMATION

Top

Copyright 200[8], 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


TM documentation Contained in the TM distribution.
package TM::Materialized::CTM;

use TM::Materialized::Stream;
use base qw (TM::Materialized::Stream);

use Class::Trait qw(TM::Serializable::CTM);
use Data::Dumper;

sub new {
    my $class   = shift;
    my %options = @_;
    $options{psis} = $TM::PSI::topicmaps; # make sure we have what we need
    return bless $class->SUPER::new (%options), $class;
}

our $VERSION  = '0.1';
our $REVISION = '$Id$';

1;

__END__