DiscussionsIssue archiveOther usage issues

Archived discussion

Test the Type using Dynamic Type

Other usage issuesTue, 06/21/2011 - 14:464 replies

Browse this forum
QuestionAuthor

Hi all,
I have to create a command in Draw Test Harness which will check a line and a circle and give the name of the shape as the output and if it is a circle give the radius as well.
I tried to do this using Dynamic Type but could not.
Can someone give me any sample for this?

Discussion

4 archived replies

Posts are displayed in their archived order.

01Commenter-1

Hi,
Use DynamicType()->Name(); // returns CString
Regards

02Author

OK..Thanks a lot.

03Author

Can you provide me a sample code on using Name method of Dynamic Type to do the above task? I searched a lot, but could not find out. Please help me.
Thanks.

04Commenter-1

You can easy find a lot of examples grepping OCCT
sources with key = "DynamicType()->Name()".
Regards