Martin Hosken > SIL-Shoe-1.37 > SIL::Shoe::Settings

Download:
SIL-Shoe-1.37.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View/Report Bugs
Source  

NAME ^

SIL::Shoe::Settings - Corresponds to a Shoebox Settings directory

SYNOPSIS ^

 $s = SIL::Shoe::Settings->new("c:/My Shoebox Settings");
 $t = $s->type("MDF");
 $l = $s->lang("Default");

DESCRIPTION ^

Creates a directory of all .typ and .lng files according to the names that are stored within the files. Then provides the appropriate objects, read, when asked.

The following methods are available:

SIL::Shoe::Settings->new("dir");

Reads the given directory building up lists of type and language files. For each file, an appropriate stub object is read (new is called, but not read). From this the internal directories are built.

$s->type($name);

Returns the type object associated with $name if it exists, or undef.

$s->lang($name);

Returns the lang object associated with $name if it exists, or undef.

syntax highlighting: