C++ – Simple Question about Visio 2007 (trying to create a simple UML diagram(C++) )

cdiagramumlvisio

I'm simply trying to create a UML diagram where I can show the header file declarations.

I to be able to display things such as:

Bitmap * getImage()
Coordinate * getCoordinates(Object o)

Stuff like that. Problem is, I can't figure out how to display pointers as return types(it only let's be choose objects from the UML diagram) or arguments. I can get around the return types by just including them in the name of the function, but I still can't find out how to display the arguments (ex: Object o listed previously) or just find a quick fix around it. I can't quick fix it the same way because Visio automatically puts a parenthesis at the end of my function (ex: Coordinate * getCoordinates(Object o) would output Coordinate * getCoordinates(Object o)()

Is there a way to enter arguments and parameters that could include pointers? Or a quick fix around it?

Thanks in advance

Best Answer

Go to the method in question in the "Operations" area of the dialog box. Then click on the "Properties" button to get the "UML Operation Properties" dialog. In there, set the "suffix" to "*".

Related Topic