NAME
oEdtk::OmgrIdxDoc - Outmngr index document (CSV lines)
SYNOPSIS
use oEdtk::OmgrIdxDoc;
my $doc = oEdtk::OmgrIdxDoc->new;
$doc->mktag('ED_IDLDOC', $idldoc);
$doc->dump; # one CSV line, in @INDEX_COLS order
DESCRIPTION
An oEdtk::Doc subclass that produces the index records consumed by Outmngr. The column list and order come from @INDEX_COLS in oEdtk::DBAdmin; each emitted document is a single CSV line built with Text::CSV.
METHODS
new
my $doc = oEdtk::OmgrIdxDoc->new;
Build the document, creating the Text::CSV writer and the header line from @INDEX_COLS, and clear the tag hash.
mktag
my $name = $doc->mktag($name, $value);
Record the index value $value under the column $name and return $name.
reset
$doc->reset;
Clear the recorded tag values.
dump
my $line = $doc->dump;
Return the recorded values, in @INDEX_COLS order, combined into one CSV line.
AUTHOR
The oEdtk team.