class diagram

P

Philipp Kraus

Hello,

I have written a framework that is a head-only structure and using
templates. For documentation I would like to create a class diagram
which shows all cardinalities and derivations.
I'm using XCode and it can build a diagram but only from instanciated
classes. XCode build the diagram if I set myclass<int> but not with
tempate<typename T> class {}
So I can create the whole diagram only if I write an example program
which creates objects of each class.

Do you know a good documentation tool to create class diagrams with the
template structures?

Thanks

Phil
 
J

Jorgen Grahn

Hello,

I have written a framework that is a head-only structure and using
"Head-only"?

templates. For documentation I would like to create a class diagram
which shows all cardinalities and derivations.
I'm using XCode and it can build a diagram but only from instanciated
classes. XCode build the diagram if I set myclass<int> but not with
tempate<typename T> class {}
So I can create the whole diagram only if I write an example program
which creates objects of each class.

Do you know a good documentation tool to create class diagrams with the
template structures?

I'd use paper and pencil, to quickly get a picture which focuses on
the important parts. I find drawing tools too slow and tedious. And
automatic tools like Doxygen can't know which parts are important
and which are not (assuming Doxygen works at all with templates).

Or perhaps you should write that example program.

/Jorgen
 
P

Philipp Kraus

"Head-only"?

sorry typo error: header-only
I'd use paper and pencil, to quickly get a picture which focuses on
the important parts. I find drawing tools too slow and tedious. And
automatic tools like Doxygen can't know which parts are important
and which are not (assuming Doxygen works at all with templates).

Yes, I use at this time doxygen, but doxygen can support graphvis for
drawing, but I don't test it.

I would like to create a diagram like
http://img.skitch.com/20091122-j6q7axd8up53qb1m1xdaxswrai.png
Or perhaps you should write that example program.

*g* a lot of work....

Thanks

Phil
 
P

Philipp Kraus

I've used it, and I still recommend paper and pencil.


How can you write a template framework without writing any example
programs? You can't test it unless you instantiate those templates.

My examples are not under the framework path, so I would like to create
only the documentation without the examples.
I would like to use a "reverse engenieering tool", which reads the
files under the framework and can create the diagram(s).
I've tested www.visual-paradigm.com it's a nice tool, but I wouldn't by
a licence at this time (reverse engeniering needs a licence).

Phil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top