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
|
#include <qapplication.h>
#include "UmlCom.h"
#include "UmlItem.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 {
// warning : update release number in UmlPackage::xmi !
UmlCom::trace("<b>Xmi generator</b> release 1.4.6<br>");
UmlCom::targetItem()->xmi(argc - 2, argv + 1);
}
catch (...) {
}
// must be called to cleanly inform that all is done
UmlCom::bye();
}
UmlCom::close();
return 0;
}
|