Menu

Dia2Code+ C++ generation

Help
gilou
2017-04-19
2017-04-19
  • gilou

    gilou - 2017-04-19

    Hello all,
    Thank you for your work, I'm happy to use this new version plugin. I'm learning UML for C++ project and it's simple with dia. So my question is : I've draw a class diagram and I try to generate .cpp and .hpp files but dia2code+ give me only .hpp files.

    I've tried the command : dia2code -t cpp -d C++/ diagram.dia

    .hpp files generation are already a great help.
    That come probably from my diagram but I don't know why. I've tryed the example1.dia from dia's example and it's the same.
    I can send you my diagram if needed.

    Regards,
    gilou

     
  • LE GARREC Vincent

    Hi,

    dia2code only generates header. It doesn't generate prototype in source file.

    Regards,

     
  • gilou

    gilou - 2017-04-20

    Hi,
    Thanks for your quick reply.
    Ok I was misled by the documentation : Here
    In the examples section :

    $ dia2code -t cpp -nc -d ~/C++ hw.dia
    Will generate the .cpp and .h files for the classes in the test.dia diagram and put them in the directory ~/C++. It won't overwrite any existant file.

    Regards,
    gilou

     

Log in to post a comment.

MongoDB Logo MongoDB