Lab-Measurement
view release on metacpan or search on metacpan
lib/Lab/Moose/Sweep/DataFile.pm view on Meta::CPAN
package Lab::Moose::Sweep::DataFile;
$Lab::Moose::Sweep::DataFile::VERSION = '3.931';
# ABSTRACT: Store parameters of datafile and its plots.
use Moose;
use MooseX::Params::Validate 'validated_hash';
has params => ( is => 'ro', isa => 'HashRef', required => 1 );
has plots => (
is => 'ro', isa => 'ArrayRef[HashRef]',
default => sub { [] },
);
sub add_plot {
my ( $self, %args )
= validated_hash( \@_, MX_PARAMS_VALIDATE_ALLOW_EXTRA => 1 );
push @{ $self->plots }, \%args;
}
__PACKAGE__->meta->make_immutable();
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Lab::Moose::Sweep::DataFile - Store parameters of datafile and its plots.
=head1 VERSION
version 3.931
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2025 by the Lab::Measurement team; in detail:
Copyright 2017 Simon Reinhardt
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
( run in 0.787 second using v1.01-cache-2.11-cpan-39bf76dae61 )