Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't generate expected association or composition relationship code #35

Open
XDinEuro opened this issue Feb 10, 2022 · 0 comments
Open

Comments

@XDinEuro
Copy link

Hi, the code generator is amazing, but I found something missing.

When I draw a diagram like this
Screenshot from 2022-02-10 09-29-55

I get code for Class1 is

#ifndef _CLASS1_H
#define _CLASS1_H

class Class1 {
};

#endif //_CLASS1_H

and Class2 is

#ifndef _CLASS2_H
#define _CLASS2_H

class Class2 {
};

#endif //_CLASS2_H

I thought I have a aggregation relationship from Class1 to Class2, so I expect code for Class2 should be

#ifndef _CLASS2_H
#define _CLASS2_H

#include "Class1.h"
class Class2 {
public
  Class1* Class1Ptr;
};

#endif //_CLASS2_H

This will be helpful if it automatic generate those header dependency relationship and create class association relationship.

Look forward to your reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant