Dicop::Data::Charset::Extract - describes string extraction from a file


Dicop-Server documentation  | view source Contained in the Dicop-Server distribution.

Index


NAME

Top

Dicop::Data::Charset::Extract - describes string extraction from a file

SYNOPSIS

Top

    use Dicop::Data::Charset::Extract;

REQUIRES

Top

perl5.008001, Exporter, Dicop::Base, Dicop::Item, Dicop, Dicop::Event, Math::BigInt

EXPORTS

Top

Exports nothing on default.

DESCRIPTION

Top

A dictionary charset has the following fields, most of them can be set via new. The rest (shown with a *) is automatically initialized/overwritten/maintained:

set

The simple charset used to describe which characters should be extracted.

description

A short description.

id *

The identification number.

dirty *

If set to 1, the charset is considered 'in use' and can no longer be changed. (Actually, only the set, the description still can be changed)

This is to prevent changes to a charset that is currently used by a job, since that would invalidate the job's keyspace.

METHODS

Top

check()

Perform an internal check and return '' for okay, otherwise an error message.

type()

Returns the type, in this case the string 'extract'.

charset()

Return the internal Math::String::Charset object.

extract_set()

Return the internal Math::String::Charset object, that is describing the strings that should be extracted.

check_strings()

        $error = $self->check_strings ($hash, @keys);

Take a hash reference and a list of keys. For each of the keys in the hash, check that it is an object of the underlying charset. If not, create an object out of it.

To satisify external code, creates Math::String objects from the keys with a charset containing '.'..'9'.

image_file_name()

Store the image file name, and set start/end from the image file size.

BUGS

Top

None known yet.

AUTHOR

Top

(c) Bundesamt fuer Sicherheit in der Informationstechnik 1998-2006

DiCoP is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

See http://www.bsi.de/ for more information.


Dicop-Server documentation  | view source Contained in the Dicop-Server distribution.