29 cout <<
"Generando un Tree_Node complejo (arbol de procesos)..." << endl;
41 root->insert_rightmost_child(bash_login);
42 root->insert_rightmost_child(cron_daemon);
43 root->insert_rightmost_child(xorg_server);
44 root->insert_rightmost_child(dbus_daemon);
51 bash_login->insert_rightmost_child(htop);
52 bash_login->insert_rightmost_child(nvim);
53 bash_login->insert_rightmost_child(gcc_comp);
59 gcc_comp->insert_rightmost_child(cc1plus);
60 gcc_comp->insert_rightmost_child(as);
66 cron_daemon->insert_rightmost_child(daily_backup);
67 cron_daemon->insert_rightmost_child(log_rotate);
74 xorg_server->insert_rightmost_child(wm);
75 wm->insert_rightmost_child(terminal);
76 wm->insert_rightmost_child(browser);
79 string filename =
"process_tree.dot";
80 ofstream
out(filename);
82 cerr <<
"Error al abrir el archivo " << filename <<
" para escritura." << endl;
90 cout <<
"Archivo '" << filename <<
"' generado exitosamente." << endl;
91 cout <<
"Puedes visualizarlo ejecutando:" << endl;
92 cout <<
" dot -Tpng " << filename <<
" -o process_tree.png" << endl;
__gmp_expr< T, __gmp_binary_expr< __gmp_expr< T, U >, unsigned long int, __gmp_root_function > > root(const __gmp_expr< T, U > &expr, unsigned long int l)