1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
#include <qapplication.h>
#include "UmlCom.h"
#include "UmlItem.h"
#include "UmlDiagram.h"
#include "UmlClass.h"
// the program is called with the socket port number in argument
int main(int argc, char ** argv)
{
if (argc < 2)
return 0;
QApplication a(argc, argv);
if (UmlCom::connect(QString(argv[argc - 1]).toUInt())) {
try {
UmlCom::trace("<b>Html generator</b> release 2.19 (C++ version)<br />");
UmlItem * target = UmlCom::targetItem();
target->set_dir(argc - 2, argv + 1);
UmlCom::message("Memorize references ...");
target->memo_ref();
UmlItem::frame();
UmlCom::message("Indexes ...");
UmlItem::generate_indexes();
UmlItem::start_file("index", target->name() + "\nDocumentation", FALSE);
target->html(QCString(""), 0u, 0u);
UmlItem::end_file();
UmlItem::start_file("navig", "", TRUE);
UmlItem::end_file();
UmlClass::generate();
UmlCom::trace("Done");
UmlCom::message("");
}
catch (...) {
}
// must be called to cleanly inform that all is done
UmlCom::bye(0);
}
UmlCom::close();
return 0;
}
|