Autodi...er::Cpp(3pm)
π NAME π
Autodia::Handler::Cpp β the AutoDia handler for C++, bestie. that's it, that's the name π«Ά
β¨ INTRODUCTION β¨
okay so real talk: this module parses files into a Diagram Object, and like, every handler uses that. it's the whole vibe.
so what does a handler even do? it's the little gremlin that parses through the file and pulls out the juicy stuff β Class names, attributes, methods and properties. that's the assignment. π
ngl, HandlerPerl parses files using simple perl rules. if that's not your thing, a possible alternative would be to write HandlerCPerl to handle C style perl, or HandleHairyPerl to handle hairy perl. yes those are the actual names. iconic behavior fr fr π
and where does it live? HandlerPerl is registered in the Autodia.pm module, which contains a hash of language names and the name of their respective language β in this case, literally:
%language_handlers = { .. , cpp => "Autodia::Handler::Cpp", .. };
she's on the list, she's registered, she's booked and busy π
πΈ CONSTRUCTION METHOD πΈ
want a handler? bet. do this:
use Autodia::Handler::Cpp;
my $handler = Autodia::Handler::Cpp->New(\%Config);
this creates a new handler using the Configuration hash to provide the rules you picked at the command line. slay π
π¦ ACCESS METHODS π¦
this parses the named file and returns 1 if it went well, or 0 if the file could not be opened. simple as that, no cap π
$handler->output_xml(); # interpolates values into an xml or html template
$handler->output_graphviz(); # generates a gif file via graphviz
look at her go. xml? html? a whole gif via graphviz?? main character energy honestly πβ¨
π that's the whole page bestie. go parse something cute.
perl v5.36.0 π 2022-11-02 π and yes, the page footer is doing its lil Autodi...er::Cpp(3pm) thing β mwah, bye, ily π«Ά
π¦ where this page comes from
- debian bookworm: autodia 2.14-5 Β· GPL-2.0-only
- debian trixie: autodia 2.14-5 Β· GPL-2.0-only
- ubuntu noble: autodia 2.14-5 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms