NAME
OPC - API for low-level manipulations with packages in OPC format (ECMA-376 Part 2)
SYNOPSIS
my $Package = eval{ OPC->new( '/path/to/opc/package' ) };
if( $@ ) {
die "/path/to/opc/package is not a valid OPC package: $@";
}
# Get part by name
my $Part1 = $Package->Part(name => '/part/name');
# Get root node
my $Root = $Package->Root;
# Get package related part with C<Type> 'http://my.own/custom/type'
my $Part2 = $Root->RelatedPart(type => 'http://my.own/custom/type');
# Get list of parts related to some other part
my @PictureParts = $Part2>RelatedParts(type => 'http://my.own/type/for/pictures');
DESCRIPTION
See http://www.ecma-international.org/publications/standards/Ecma-376.htm
AUTHOR
Litres.ru Team
LICENSE AND COPYRIGHT
Copyright (C) 2018 Litres.ru
The GNU Lesser General Public License version 3.0
OPC is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3.0 of the License.
OPC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
Full text of License http://www.gnu.org/licenses/lgpl-3.0.en.html.