Sunday, August 31, 2008

One of a cool stuff on VSTS 2008

On VSTS 2008, support class diagram like a IBM's class diagram.
Class diagram is demonstrating an inheritance or an association among classes.
However it's only support a reverse, code to diagram.
But it's quite useful for Visual studio developers.

It's really easy to make class diagram.

I've coded following codes.
class CShape
{
public:
CShape(void);
virtual void Draw();
virtual ~CShape(void);
};

class CElipse : public CShape
{
public :
CElipse();
virtual void Draw();
virtual ~CElipse();

private:
int width;
int height;
};

class CRectangle : public CShape
{
public :
CRectangle();
virtual void Draw();
virtual ~CRectangle();

private:
int width;
int height;
};



On Class View, select classes to draw a class diagram.

And click right mouse button then click "View Class Diagram" menu item.

After a seconds, following class diagram will be shown.

And sad news is it does not support managed C++ classes.

Powered By Blogger