I'm not quite sure how to phrase this but I'll take a stab, if you can't make sense of it tell me an I'll try again...
Ok, say I have a class called MyClass. And MyObject is an object of type MyClass. Is it possible to obtain the object name in a function?
Like say I have MyClass,
and I have:Code:class MyClass{ .... };
MyClass myObj1;
MyClass myObj2;
is it possible to get the name of the obj? Like say in a class function:
where get ObjName will return the parent or whatever, so if I go myObj1.myFunction() it will return myObj1 or if I do it with myObj2 it'll return myObj2 ???Code:void MyClass::myFunction(...) { getObjName; }
Hope that makes a little bit of sense... :|



LinkBack URL
About LinkBacks


