#!/usr/bin/perl

use strict;
use warnings;

use Carp qw(cluck longmess shortmess croak confess);
use Data::Dumper;
use Ernad::Args;
use Ernad::Erimp;
use Ernad::Indat::Otria;
use Ernad::Indat::Report;

our ($impna, $e, $repcode, $in_file);
&Ernad::Args::parse();
$e=Ernad::Erimp->new({'impna'=> $impna, 'verbose'=>3});

my $r=Ernad::Indat::Report->new();
## so we don't have to run the otria twice
my $report_list=$r->gather_all_reports();

print Dumper $report_list;

exit;

my $s=Ernad::Indat::Sborn->new();
my $doc=$s->report_xml($report_list);
$s->show('reports',$doc);
