Code generation for associations
| Newsgroups | gmane.linux.umbrello.user |
|---|---|
| Message-ID | <[email protected]> |
Hi there, thanks for the work on Umbrello - I installed it a couple of days ago, and so far it really looks like what I was looking for. However, I am unable to generate any c++ code for associations between classes. As an example, I enclosed with this mail a simple class diagram, and the generated code for class A. As you will see, the code for class A does not feature any composition with class B or D - though they are composed in the uml diagram. I supose A and D classes should be enclosed in class A as static classes... I did not find any info in the list archive or in the doc, or on the Net, though I had a close look the previous days. Is there a simple reason for that ? What did I do wrong ? Thx ! Nicolas
classes.png
(image/png, 2 KB) - not displayed
a.h
(text/x-c-header, 2.1 KB)
/************************************************************************
a.h - Copyright geoffrey
Here you can write a license for your code, some comments or any other
information you want to have in your generated code. To to this simply
configure the "headings" directory in uml to point to a directory
where you have your heading files.
or you can just replace the contents of this file with your own.
If you want to do this, this file is located at
/home/geoffrey/kde3.3.2/share/apps/umbrello/headings/heading.h
-->Code Generators searches for heading files based on the file extension
i.e. it will look for a file name ending in ".h" to include in C++ header
files, and for a file name ending in ".java" to include in all generated
java code.
If you name the file "heading.<extension>", Code Generator will always
choose this file even if there are other files with the same extension in the
directory. If you name the file something else, it must be the only one with that
extension in the directory to guarantee that Code Generator will choose it.
you can use variables in your heading files which are replaced at generation
time. possible variables are : author, date, time, filename and filepath.
just write %variable_name%
This file was generated on mar fév 8 2005 at 12:54:54
The original location of this file is
**************************************************************************/
#ifndef A_H
#define A_H
#include <string>
#include <vector>
/**
* Class A
*
*/
class A {
/**
* Public stuff
*/
public:
/**
* Fields
*/
/**
*
*/
/**
* Constructors
*/
/**
* Empty Constructor
*/
A ( ) { }
/**
* Accessor Methods
*/
/**
* Operations
*/
/**
* Protected stuff
*/
protected:
/**
* Fields
*/
/**
*
*/
/**
* Constructors
*/
/**
* Accessor Methods
*/
/**
* Operations
*/
/**
* Private stuff
*/
private:
/**
* Fields
*/
/**
*
*/
/**
* Constructors
*/
/**
* Accessor Methods
*/
/**
* Operations
*/
};
#endif //A_H