File Coverage

blib/lib/Palm/MaTirelire/Modes.pm
Criterion Covered Total %
statement 13 14 92.8
branch n/a
condition n/a
subroutine 5 6 83.3
pod 0 1 0.0
total 18 21 85.7


line stmt bran cond sub pod time code
1             #
2             # Author : Maxime Soulé
3             # Created On : Mon Aug 30 00:36:38 2004
4             # Last Modified By: Maxime Soule
5             # Last Modified On: Mon May 3 14:55:00 2010
6             # Update Count : 2
7             #
8             # Copyright (C) 2005, Maxime Soulé
9             # You may distribute this file under the terms of the Artistic
10             # License, as specified in the README file.
11             #
12              
13             package Palm::MaTirelire::Modes;
14              
15 1     1   1362 use strict;
  1         3  
  1         37  
16              
17 1     1   6 use Palm::BlockPack;
  1         2  
  1         21  
18              
19 1     1   5 use Palm::MaTirelire::DBItemId;
  1         2  
  1         8  
20              
21 1     1   40 use base qw(Palm::MaTirelire::DBItemId);
  1         1  
  1         249  
22              
23             our $VERSION = '1.0';
24              
25              
26             # Each record
27             my $RECORD_BLOCK = Palm::BlockPack->new
28             (UInt32 => [
29             [ 'mode_id:5' => 0 ],
30             [ 'value_date:3' => 0 ],
31             [ 'first_val:6' => 0 ],
32             [ 'debit_date:5' => 0 ],
33             [ 'cheque_auto:1' => 0 ],
34             [ 'reserved:*' => 0 ],
35             ],
36              
37             'Z24' => [ 'only_in_account' => '' ],
38             'Z*' => [ 'name' => '' ],
39             );
40              
41              
42             sub import
43             {
44 1     1   9 &Palm::PDB::RegisterPDBHandlers(__PACKAGE__, [ "MaT2", 'Mode' ]);
45             }
46              
47              
48             sub meta_infos ($)
49             {
50 0     0 0   return { name => "MaTi-Modes",
51             type => "Mode",
52             record_block => $RECORD_BLOCK,
53             id_field => 'mode_id',
54             unfiled_name => 'Unknown',
55             num => (1 << 5),
56             };
57             }
58              
59             1;
60             __END__