| 1 | # -*- cperl -*- | ||||||||||
| 2 | # ABSTRACT: Presentation object | ||||||||||
| 3 | |||||||||||
| 4 | |||||||||||
| 5 | package BeamerReveal::Object::Presentation; | ||||||||||
| 6 | 1 | our $VERSION = '20261115.1249'; # VERSION | |||||||||
| 7 | |||||||||||
| 8 | 1 | ▶ | use parent 'BeamerReveal::Object'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 1 | ▶ | use Carp; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | 1 | ▶ | use Data::Dumper; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | |||||||||||
| 13 | 1 | ▶ | use BeamerReveal::TemplateStore; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | 1 | ▶ | use BeamerReveal::Log; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | |||||||||||
| 16 | |||||||||||
| 17 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||
| 18 | 0 | my $class = shift; | |||||||||
| 19 | 0 | my ( $chunkData, $lines, $lineCtr ) = @_; | |||||||||
| 20 | |||||||||||
| 21 | 0 | my $logger = $BeamerReveal::Log::logger; | |||||||||
| 22 | |||||||||||
| 23 | 0 | ▶ | $class = (ref $class ? ref $class : $class ); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 24 | 0 | my $self = {}; | |||||||||
| 25 | 0 | bless $self, $class; | |||||||||
| 26 | |||||||||||
| 27 | 0 | $self->{videos} = []; | |||||||||
| 28 | 0 | foreach my $line ( @$lines ) { | |||||||||
| 29 | 0 | ++$lineCtr; | |||||||||
| 30 | 0 | ▶ | ( $line =~ /^-(?<command>\w+):(?<payload>.*)$/ ) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 31 | or $logger->fatal( "Error: syntax incorrect in rvl file on line $lineCtr '$line'\n" ); | ||||||||||
| 32 | 0 | ▶ | if ( $+{command} eq 'parameters' ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 33 | 0 | $self->{parameters} = BeamerReveal::Object::readParameterLine( $+{payload} ); | |||||||||
| 34 | } | ||||||||||
| 35 | else { | ||||||||||
| 36 | 0 | $logger->fatal( "Error: unknown Presentation data on line $lineCtr '$line'\n" ); | |||||||||
| 37 | } | ||||||||||
| 38 | } | ||||||||||
| 39 | |||||||||||
| 40 | 0 | return $self; | |||||||||
| 41 | } | ||||||||||
| 42 | 1 | 1; | |||||||||
| 43 | |||||||||||
| 44 | __END__ | ||||||||||