CAD::Drawing::IO 0.26 review

Download
by rbytes.net on

CAD::Drawing::IO are I/O methods for the CAD::Drawing module. This module provides the load() and save() functions for CAD::Drawin

License: Perl Artistic License
File size: 39K
Developer: Eric L. Wilhelm
0 stars award from rbytes.net

CAD::Drawing::IO are I/O methods for the CAD::Drawing module.

This module provides the load() and save() functions for CAD::Drawing and provides a point of flow-control to deal with the inheritance and other trickiness of having multiple formats handled through a single module.

Utility Functions

These are simply inherited by the CAD::Drawing module for your direct usage.
outloop

Crazy new experimental output method. Each entity supported by the format should have a key to a function in %functions, which is expected to accept the following input data:

$functions{$ent_type}->($obj, %data);

The %data hash is passed verbatim to each function.

$count = $drw->outloop(%functions, %data);

In addition to each of the $ent_type keys, functions for the keys 'before' and 'after' may also be defined. These (if they are defined) will be called before and after each entity, with the same arguments as the $ent_type functions.

is_persistent

Returns 1 if $filename points to a persistent (directory / db) drawing.

$drw->is_persistent($filename);

Requirements:
Perl

CAD::Drawing::IO 0.26 keywords