Autodi...er::Cpp(3pm)

πŸ“¦
version 2.14 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble

πŸ’… 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