Linux and UNIX Man Pages

Test Your Knowledge in Computers #197
Difficulty: Easy
C# ranked higher than C according to the TIOBE Index for October 2019.
True or False?
Linux & Unix Commands - Search Man Pages

autodia::diagram(3pm) [debian man page]

Autodia::Diagram(3pm)					User Contributed Perl Documentation				     Autodia::Diagram(3pm)

Autodia::Diagram - Class to hold a collection of objects representing parts of a Dia Diagram. SYNOPSIS
use Autodia::Diagram; my $Diagram = Autodia::Diagram->new; Description Diagram is an object that contains a collection of diagram elements and the logic to generate the diagram layout as well as to output the diagram itself in Dia's XML format using template toolkit. METHODS
Class Methods new - constructor method creates and returns an unpopulated diagram object. Object methods To get a collection of a objects of a certain type you use the method of the same name. ie $Diagram->Classes() returns an array of 'class' objects. The methods available are Classes(), Components(), Superclasses(), Inheritances(), Relations(), and Dependancies(); These are all called in the template to get the collections of objects to loop through. To add an object to the diagram. You call the add_<object type> method, for example $Diagram->add_class($class_name), passing the name of the object in the case of Class, Superclass and Component but not Inheritance or Dependancy which have their names generated automagically. Objects are not removed, they can only be superceded by another object; Component can be superceded by Superclass which can superceded by Class. This is handled by the object itself rather than the diagram. Accessing and manipulating the Diagram Elements are added to the Diagram through the add_<elementname> method (ie add_classes() ). Collections of elements are retrieved through the <elementname> method (ie Classes() ). The diagram is laid out and output to a file using the export_xml() method. See Also Autodia Autodia::Diagram::Object Autodia::Diagram::Class Autodia::Diagram::Superclass Autodia::Diagram::Component Autodia::Diagram::Inheritance Autodia::Diagram::Relation Autodia::Diagram::Dependancy AUTHOR
Copyright (C) 2004 by Aaron Trevena This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.1 or, at your option, any later version of Perl 5 you may have available. perl v5.12.4 2009-10-24 Autodia::Diagram(3pm)

Check Out this Related Man Page

Autodia::Handler::Torque(3pm)				User Contributed Perl Documentation			     Autodia::Handler::Torque(3pm)

NAME - AutoDia handler for Torque xml database schema INTRODUCTION
This provides Autodia with the ability to read Torque Database Schema files, allowing you to convert them via the Diagram Export methods to images (using GraphViz and VCG) or html/xml using custom templates or to Dia. SYNOPSIS
use Autodia::Handler::Torque; my $handler = Autodia::Handler::dia->New(\%Config); $handler->Parse(filename); # where filename includes full or relative path. Description The Torque handler will parse the xml file using XML::Simple and populating the diagram object with class, superclass, and relationships representing tables and relationships. The Torque handler is registered in the module, which contains a hash of language names and the name of their respective language. An example Torque database schema is shown here - its actually a rather nice format apart from the Java studlyCaps.. <?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?> <!DOCTYPE database SYSTEM ""> <database name="INTERPLANETARY"> <table name="CIVILIZATION"> <column name="CIV_ID" required="true" autoIncrement="true" primaryKey="true" type="INTEGER"/> <column name="NAME" required="true" type="LONGVARCHAR"/> </table> <table name="CIV_PEOPLE"> <column name="CIV_ID" required="true" primaryKey="true" type="INTEGER"/> <column name="PEOPLE_ID" required="true" primaryKey="true" type="INTEGER"/> <foreign-key foreignTable="CIVILIZATION"> <reference local="CIV_ID" foreign="CIV_ID"/> </foreign-key> <foreign-key foreignTable="PEOPLE"> <reference local="PEOPLE_ID" foreign="PEOPLE_ID"/> </foreign-key> </table> <table name="PEOPLE"> <column name="PEOPLE_ID" required="true" autoIncrement="true" primaryKey="true" type="INTEGER"/> <column name="NAME" required="true" size="255" type="VARCHAR"/> <column name="SPECIES" type="INTEGER" default="-2"/> <column name="PLANET" type="INTEGER" default="-1"/> </table> </database> METHODS
CONSTRUCTION METHOD use Autodia::Handler::Torque; my $handler = Autodia::Handler::Torque->New(\%Config); This creates a new handler using the Configuration hash to provide rules selected at the command line. ACCESS METHODS $handler->Parse(filename); # where filename includes full or relative path. This parses the named file and returns 1 if successful or 0 if the file could not be opened. SEE ALSO
Autodia Torque Autodia::Handler perl v5.12.4 2009-02-16 Autodia::Handler::Torque(3pm)

Featured Tech Videos