13.07.2015 Views

Bouml reference manual - Fedora Project Packages GIT repositories

Bouml reference manual - Fedora Project Packages GIT repositories

Bouml reference manual - Fedora Project Packages GIT repositories

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

file:///C:/uml/BOUML/bouml_3.0/doc/TOUT.html308 of 378 07/10/2007 15:55C++ GeneratorThe C++ code generator is a plug-out directly written in C++ (the C++ code generator does not generate itself !).The generated sources follows the definition made in BOUML at the artifact / class / operation / relation / attribute / extra member levels.When the code generation is applied on a artifact associated to several classes, the code generation is made for all these classesNevertheless the C++ code generator produce first the code in memory and update the appropriate files only when it is necessary, tochange the last write date of the files for nothing. Depending on the toggle verbose code generation of the global menu Languages thecode generator is verbose or not.The C++ code generator plug-out may be called on :a class : in this case the code generation is in fact applied on the class's artifact, then on all the classes associated to this artifacta artifact : in this case the code generation is in fact applied on all the classes associated to the artifacta class view : the code generation will be applied on all the sub classes, then on all the artifacts associated to these classesa deployment view : the code generation is applied on all the sub artifactsa package (may be the project itself) : the code generation will be applied on all the sub class views and deployment views, then onall their sub classes and artifacts.When the C++ code generator is ask through the Tools menu, it is applied on the project, then on all the artifacts.The name of the generated files depend on the artifact name, the extension depend on the language and is fixed for each by thegenerationssettings(see below), the directory where the files are generated may be set in each package containing directly or indirectly the artifact (seegeneration directory).artifactThe C++ definition of a artifact is set through the C++ header and C++ source tabs of the artifact dialog.The code generation depend on the stereotype of the artifact :text : the C++ definition of the artifact is produced without changes, the name of the generated file is the name of the artifact,including the extension.source : see below.else nothing is generated for the artifact.artifact header C++The generated file name is the artifact's name with the extension specified in the first C++ tab of the generations settings :

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!