uml::class::simple query

uml::class::simple query

am 05.06.2007 07:32:01 von ukhas jean

--===============0477755010==
Content-Type: multipart/alternative; boundary="0-1578755134-1181021521=:5229"
Content-Transfer-Encoding: 7bit

--0-1578755134-1181021521=:5229
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hello all,
=20
I was trying to generate UML class and object diagrams for my code-base=
.. I came across this module UML::Class::Simple and wrote this small code:=
-
=20
use UML::Class::Simple;
@classes =3D classes_from_files(['Sheet.pm']);
$painter =3D UML::Class::Simple->new(\@classes);
$painter->as_png('c:\ppi.png');
=20
print "@classes";
=20
It gave me this error:-
Can't locate object method "new" via package "Template" (perhaps you fo=
rgot to load "Template"?) at C:/Perl/site/lib/UML/Class/Simple.pm line 23=
..
Compilation failed in require at b.pl line 1.
BEGIN failed--compilation aborted at b.pl line 1.
=20
when i did "ppm i Template" the system shows me that this module is alr=
eady installed.
=20
1. There were many modules that got were reported when i did "perl Make=
file.pl" and I went on installing each module separately. Is there a way =
that all the dependenct-modules get installed automatically??
2. Why is perl compaining in this manner?
3. Are there any more modules which could generate UML class-object dia=
grams?
=20
I really am stuck; any pointers would be much appreciated.
=20
best,
Raghu,
ICICI, Team-Lead

=20
---------------------------------
Ready for the edge of your seat? Check out tonight's top picks on Yahoo! =
TV.=20
--0-1578755134-1181021521=:5229
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hello all,
 
I was trying to generate U=
ML class and object diagrams for my code-base. I came across this mo=
dule UML::Class::Simple and wrote this small code:-
  iv>
 use UML::Class::Simple;
@classes =3D classes_=
from_files(['Sheet.pm']);
    $painter =3D UML=
::Class::Simple->new(\@classes);
    $painter->as=
_png('c:\ppi.png');
 
print "@classes"; >
 
It gave me this error:-
Can't loca=
te object method "new" via package "Template" (perhaps you forgot to load=
"Template"?) at C:/Perl/site/lib/UML/Class/Simple.pm line 23.
Compila=
tion failed in require at b.pl line 1.
BEGIN failed--compilation abort=
ed at b.pl line 1.
 
when i did "ppm i Templ=
ate" the system shows me that this module is already installed.
iv> 
1. There were many
modules that got were reported when i did "perl Makefile.pl" and I went =
on installing each module separately. Is there a way that all the depende=
nct-modules get installed automatically??
2. Why is perl comp=
aining in this manner?
3. Are there any more modules which co=
uld generate UML class-object diagrams?
 
I =
really am stuck; any pointers would be much appreciated.
&nbs=
p;
best,
Raghu,
ICICI, Team-Lead >



Ready for the edge of your seat?=20
Chec=
k out tonight's top picks
on Yahoo! TV.=20


--0-1578755134-1181021521=:5229--

--===============0477755010==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============0477755010==--

RE: :class::simple query

am 05.06.2007 12:15:47 von Brian Raven

From: activeperl-bounces@listserv.ActiveState.com
[mailto:activeperl-bounces@listserv.ActiveState.com] On Behalf Of ukhas
jean
Sent: 05 June 2007 06:32
To: Active Perl
Subject: uml::class::simple query

> Hello all,
> =

> I was trying to generate UML class and object diagrams for my
code-base. I came across this module =

> UML::Class::Simple and wrote this small code:-
> =

> use UML::Class::Simple;
> @classes =3D classes_from_files(['Sheet.pm']);
> $painter =3D UML::Class::Simple->new(\@classes);
> $painter->as_png('c:\ppi.png');
> =

> print "@classes";
> =

> It gave me this error:-
> Can't locate object method "new" via package "Template" (perhaps you
forgot to load "Template"?) at =

> C:/Perl/site/lib/UML/Class/Simple.pm line 23.
> Compilation failed in require at b.pl line 1.
> BEGIN failed--compilation aborted at b.pl line 1.
> =

> when i did "ppm i Template" the system shows me that this module is
already installed.
> =

> 1. There were many modules that got were reported when i did "perl
Makefile.pl" and I went on installing each =

> module separately. Is there a way that all the dependenct-modules get
installed automatically??
> 2. Why is perl compaining in this manner?
> 3. Are there any more modules which could generate UML class-object
diagrams?
> =

> I really am stuck; any pointers would be much appreciated.

You probably want to install Template-Toolkit.

HTH

-- =

Brian Raven =


==================== =====3D=
================
Atos Euronext Market Solutions Disclaimer
==================== =====3D=
================

The information contained in this e-mail is confidential and solely for the=
intended addressee(s). Unauthorised reproduction, disclosure, modification=
, and/or distribution of this email may be unlawful.
If you have received this email in error, please notify the sender immediat=
ely and delete it from your system. The views expressed in this message do =
not necessarily reflect those of Atos Euronext Market Solutions.

Atos Euronext Market Solutions Limited - Registered in England & Wales with=
registration no. 3962327. Registered office address at 25 Bank Street Lon=
don E14 5NQ United Kingdom. =

Atos Euronext Market Solutions SAS - Registered in France with registration=
no. 425 100 294. Registered office address at 6/8 Boulevard Haussmann 750=
09 Paris France.

L'information contenue dans cet e-mail est confidentielle et uniquement des=
tinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee. Tou=
te copie, publication ou diffusion de cet email est interdite. Si cet e-mai=
l vous parvient par erreur, nous vous prions de bien vouloir prevenir l'exp=
editeur immediatement et d'effacer le e-mail et annexes jointes de votre sy=
steme. Le contenu de ce message electronique ne represente pas necessaireme=
nt la position ou le point de vue d'Atos Euronext Market Solutions.
Atos Euronext Market Solutions Limited Soci=E9t=E9 de droit anglais, enregi=
str=E9e au Royaume Uni sous le num=E9ro 3962327, dont le si=E8ge social se =
situe 25 Bank Street E14 5NQ Londres Royaume Uni.

Atos Euronext Market Solutions SAS, soci=E9t=E9 par actions simplifi=E9e, e=
nregistr=E9 au registre dui commerce et des soci=E9t=E9s sous le num=E9ro 4=
25 100 294 RCS Paris et dont le si=E8ge social se situe 6/8 Boulevard Hauss=
mann 75009 Paris France.
==================== =====3D=
================

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: :class::simple query

am 05.06.2007 15:39:09 von ukhas jean

--===============0831110679==
Content-Type: multipart/alternative; boundary="0-493221033-1181050749=:67679"
Content-Transfer-Encoding: 7bit

--0-493221033-1181050749=:67679
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hi Bryan et al ... yes things worked fine after i installed this module.
But the as_png() and as_gif() functions of UML::Class::Simple dont seem=
to work. I cannot find a MyTest.png or Mytest.gif being created on windo=
ws by these respective functions.
Where am i going wrong? Below is my code
=20
MyTest.pm
=20
package MyTest;
our $VERSION =3D 0.01;
sub my_test{}
package MyTest::Child;
use base 'MyTest';
sub child_test{};
=20
b.pl
=20
use Data::Dumper;
use strict;
use warnings;
use UML::Class::Simple;
my @classes =3D classes_from_runtime("MyTest", qr/^MyTest/);
my $obj =3D UML::Class::Simple->new(\@classes);
$obj->as_gif('MyTest.gif');
#print Dumper($obj);
=20
=20
Any advise/pointers would be much appreciated.
=20
Best,
Raghu,
ICICI TeamLead
=20
Brian Raven wrote:
From: activeperl-bounces@listserv.ActiveState.com
[mailto:activeperl-bounces@listserv.ActiveState.com] On Behalf Of ukhas
jean
Sent: 05 June 2007 06:32
To: Active Perl
Subject: uml::class::simple query

> Hello all,
>=20
> I was trying to generate UML class and object diagrams for my
code-base. I came across this module=20
> UML::Class::Simple and wrote this small code:-
>=20
> use UML::Class::Simple;
> @classes =3D classes_from_files(['Sheet.pm']);
> $painter =3D UML::Class::Simple->new(\@classes);
> $painter->as_png('c:\ppi.png');
>=20
> print "@classes";
>=20
> It gave me this error:-
> Can't locate object method "new" via package "Template" (perhaps you
forgot to load "Template"?) at=20
> C:/Perl/site/lib/UML/Class/Simple.pm line 23.
> Compilation failed in require at b.pl line 1.
> BEGIN failed--compilation aborted at b.pl line 1.
>=20
> when i did "ppm i Template" the system shows me that this module is
already installed.
>=20
> 1. There were many modules that got were reported when i did "perl
Makefile.pl" and I went on installing each=20
> module separately. Is there a way that all the dependenct-modules get
installed automatically??
> 2. Why is perl compaining in this manner?
> 3. Are there any more modules which could generate UML class-object
diagrams?
>=20
> I really am stuck; any pointers would be much appreciated.

You probably want to install Template-Toolkit.

HTH

--=20
Brian Raven=20

==================== =====3D=
================
Atos Euronext Market Solutions Disclaimer
==================== =====3D=
================

The information contained in this e-mail is confidential and solely for t=
he intended addressee(s). Unauthorised reproduction, disclosure, modifica=
tion, and/or distribution of this email may be unlawful.
If you have received this email in error, please notify the sender immedi=
ately and delete it from your system. The views expressed in this message=
do not necessarily reflect those of Atos Euronext Market Solutions.

Atos Euronext Market Solutions Limited - Registered in England & Wales wi=
th registration no. 3962327. Registered office address at 25 Bank Street =
London E14 5NQ United Kingdom.=20
Atos Euronext Market Solutions SAS - Registered in France with registrati=
on no. 425 100 294. Registered office address at 6/8 Boulevard Haussmann =
75009 Paris France.

L'information contenue dans cet e-mail est confidentielle et uniquement d=
estinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee.=
Toute copie, publication ou diffusion de cet email est interdite. Si cet=
e-mail vous parvient par erreur, nous vous prions de bien vouloir preven=
ir l'expediteur immediatement et d'effacer le e-mail et annexes jointes d=
e votre systeme. Le contenu de ce message electronique ne represente pas =
necessairement la position ou le point de vue d'Atos Euronext Market Solu=
tions.
Atos Euronext Market Solutions Limited Soci=E9t=E9 de droit anglais, enre=
gistr=E9e au Royaume Uni sous le num=E9ro 3962327, dont le si=E8ge social=
se situe 25 Bank Street E14 5NQ Londres Royaume Uni.

Atos Euronext Market Solutions SAS, soci=E9t=E9 par actions simplifi=E9e,=
enregistr=E9 au registre dui commerce et des soci=E9t=E9s sous le num=E9=
ro 425 100 294 RCS Paris et dont le si=E8ge social se situe 6/8 Boulevard=
Haussmann 75009 Paris France.
==================== =====3D=
================

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


=20
---------------------------------
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
--0-493221033-1181050749=:67679
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hi Bryan et al ... yes things worked fine after i installed this mod=
ule.
But the as_png() and as_gif() functions of UML::Class::S=
imple dont seem to work. I cannot find a MyTest.png or Mytest.gif be=
ing created on windows by these respective functions.
Where a=
m i going wrong? Below is my code
 
MyTes=
t.pm
 
package MyTest;
our $VERSION =3D=
0.01;
sub my_test{}
package MyTest::Child;
use base 'MyTest'; R>sub child_test{};
 
b.pl
v>
use Data::Dumper;
use strict;
use warnings;
use UML=
::Class::Simple;
my @classes =3D classes_from_runtime("MyTest", qr/^My=
Test/);
my $obj =3D UML::Class::Simple->new(\@classes);
$obj->=
;as_gif('MyTest.gif');
#print Dumper($obj);

&=
nbsp;
Any advise/pointers would be much appreciated.
<=
div> 
Best,
=20
Raghu,
ICICI TeamLead

Brian Raven=
<Brian.Raven@aems.net>
wrote:
eplbq style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff =
2px solid">From: activeperl-bounces@listserv.ActiveState.com
[mailto:a=
ctiveperl-bounces@listserv.ActiveState.com] On Behalf Of ukhas
jean >Sent: 05 June 2007 06:32
To: Active Perl
Subject: uml::class::simp=
le query

> Hello all,
>
> I was trying to generate=
UML class and object diagrams for my
code-base. I came across this mo=
dule
> UML::Class::Simple and wrote this small code:-
>
=
> use UML::Class::Simple;
> @classes =3D classes_from_files(['Sh=
eet.pm']);
> $painter =3D UML::Class::Simple->new(\@classes); >> $painter->as_png('c:\ppi.png');
>
> print "@classes=
";
>
> It gave me this error:-
> Can't locate object m=
ethod "new" via package "Template" (perhaps
you
forgot to load "Template"?) at
> C:/Perl/site/lib/UML/Clas=
s/Simple.pm line 23.
> Compilation failed in require at b.pl line 1=
..
> BEGIN failed--compilation aborted at b.pl line 1.
>
&=
gt; when i did "ppm i Template" the system shows me that this module is R>already installed.
>
> 1. There were many modules that got=
were reported when i did "perl
Makefile.pl" and I went on installing =
each
> module separately. Is there a way that all the dependenct-m=
odules get
installed automatically??
> 2. Why is perl compaining=
in this manner?
> 3. Are there any more modules which could genera=
te UML class-object
diagrams?
>
> I really am stuck; any =
pointers would be much appreciated.

You probably want to install T=
emplate-Toolkit.

HTH

--
Brian Raven

=====
==================== =====3D=
============
Atos Euronext Market Solutions
Disclaimer
==================== =
==================== =3D

Th=
e information contained in this e-mail is confidential and solely for the=
intended addressee(s). Unauthorised reproduction, disclosure, modificati=
on, and/or distribution of this email may be unlawful.
If you have rec=
eived this email in error, please notify the sender immediately and delet=
e it from your system. The views expressed in this message do not necessa=
rily reflect those of Atos Euronext Market Solutions.

Atos Euronex=
t Market Solutions Limited - Registered in England & Wales with regis=
tration no. 3962327. Registered office address at 25 Bank Street London E=
14 5NQ United Kingdom.
Atos Euronext Market Solutions SAS - Registere=
d in France with registration no. 425 100 294. Registered office address =
at 6/8 Boulevard Haussmann 75009 Paris France.

L'information conte=
nue dans cet e-mail est confidentielle et uniquement destinee a la (aux) =
personnes a laquelle (auxquelle(s)) elle est
adressee. Toute copie, publication ou diffusion de cet email est interdi=
te. Si cet e-mail vous parvient par erreur, nous vous prions de bien voul=
oir prevenir l'expediteur immediatement et d'effacer le e-mail et annexes=
jointes de votre systeme. Le contenu de ce message electronique ne repre=
sente pas necessairement la position ou le point de vue d'Atos Euronext M=
arket Solutions.
Atos Euronext Market Solutions Limited Soci=E9t=E9 de=
droit anglais, enregistr=E9e au Royaume Uni sous le num=E9ro 3962327, do=
nt le si=E8ge social se situe 25 Bank Street E14 5NQ Londres Royaume Uni.=


Atos Euronext Market Solutions SAS, soci=E9t=E9 par actions simpl=
ifi=E9e, enregistr=E9 au registre dui commerce et des soci=E9t=E9s sous l=
e num=E9ro 425 100 294 RCS Paris et dont le si=E8ge social se situe 6/8 B=
oulevard Haussmann 75009 Paris France.
===========3D=
==================== =====3D=
=====3D

_______________________________________________ >ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To
unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
OTE>




http://us.rd.yahoo.com/evt=3D49981/*http://advision.webevent s.yahoo.com/m=
ailbeta/features_spam.html">Sucker-punch spam
with award-winning prot=
ection.
Try the http://us.rd.yahoo.com/evt=3D49981/*http://advision.webevent s.yahoo.com/m=
ailbeta/features_spam.html">free Yahoo! Mail Beta.

--0-493221033-1181050749=:67679--

--===============0831110679==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============0831110679==--

RE: :class::simple query

am 05.06.2007 16:40:02 von Brian Raven

From: ukhas jean [mailto:ukh_dtl@yahoo.com] =

Sent: 05 June 2007 14:39
To: Brian Raven; Active Perl
Subject: RE: :class::simple query

> Hi Bryan et al ... yes things worked fine after i installed this
module.
> But the as_png() and as_gif() functions of UML::Class::Simple dont
seem to work. I cannot find a MyTest.png or > Mytest.gif being created
on windows by these respective functions.
> Where am i going wrong? Below is my code
> =

> MyTest.pm
> =

> package MyTest;
> our $VERSION =3D 0.01;
> sub my_test{}
> package MyTest::Child;
> use base 'MyTest';
> sub child_test{};
> =

> b.pl
> =

> use Data::Dumper;
> use strict;
> use warnings;
> use UML::Class::Simple;
> my @classes =3D classes_from_runtime("MyTest", qr/^MyTest/);
> my $obj =3D UML::Class::Simple->new(\@classes);
> $obj->as_gif('MyTest.gif');
> #print Dumper($obj);
> =

> =

> Any advise/pointers would be much appreciated.

Sorry, I have never used that module. I can only ask whether you have
installed everything, graphviz for example?

Also, why not start with the wrapper script that comes with the module,
i.e. umlclass.pl, rather than writing your own?

HTH

-- =

Brian Raven =


==================== =====3D=
================
Atos Euronext Market Solutions Disclaimer
==================== =====3D=
================

The information contained in this e-mail is confidential and solely for the=
intended addressee(s). Unauthorised reproduction, disclosure, modification=
, and/or distribution of this email may be unlawful.
If you have received this email in error, please notify the sender immediat=
ely and delete it from your system. The views expressed in this message do =
not necessarily reflect those of Atos Euronext Market Solutions.

Atos Euronext Market Solutions Limited - Registered in England & Wales with=
registration no. 3962327. Registered office address at 25 Bank Street Lon=
don E14 5NQ United Kingdom. =

Atos Euronext Market Solutions SAS - Registered in France with registration=
no. 425 100 294. Registered office address at 6/8 Boulevard Haussmann 750=
09 Paris France.

L'information contenue dans cet e-mail est confidentielle et uniquement des=
tinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee. Tou=
te copie, publication ou diffusion de cet email est interdite. Si cet e-mai=
l vous parvient par erreur, nous vous prions de bien vouloir prevenir l'exp=
editeur immediatement et d'effacer le e-mail et annexes jointes de votre sy=
steme. Le contenu de ce message electronique ne represente pas necessaireme=
nt la position ou le point de vue d'Atos Euronext Market Solutions.
Atos Euronext Market Solutions Limited Soci=E9t=E9 de droit anglais, enregi=
str=E9e au Royaume Uni sous le num=E9ro 3962327, dont le si=E8ge social se =
situe 25 Bank Street E14 5NQ Londres Royaume Uni.

Atos Euronext Market Solutions SAS, soci=E9t=E9 par actions simplifi=E9e, e=
nregistr=E9 au registre dui commerce et des soci=E9t=E9s sous le num=E9ro 4=
25 100 294 RCS Paris et dont le si=E8ge social se situe 6/8 Boulevard Hauss=
mann 75009 Paris France.
==================== =====3D=
================

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs