Changeset 179 for trunk/nom/class_c/nomobj.c
- Timestamp:
- Jan 7, 2007, 5:25:48 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nom/class_c/nomobj.c
r177 r179 38 38 #include <gtk/gtk.h> 39 39 40 41 40 #include "nom.h" 42 41 #include "nomtk.h" 43 42 44 43 #include "nomobj.ih" 45 46 44 47 45 … … 87 85 } 88 86 87 NOM_Scope PNOMClass NOMLINK impl_NOMObject_nomGetClass(NOMObject* nomSelf, CORBA_Environment *ev) 88 { 89 /* NOMObjectData* nomThis=NOMObjectGetData(nomSelf); */ 89 90 91 return nomSelf->mtab->nomClassObject; 92 } 93 94 /* 95 Create a new class of the kind the caller is. This method ensures that subclasses 96 are properly handled without the need to override this class in every subclass. 97 */ 98 NOM_Scope PNOMObject NOMLINK impl_NOMObject_new(NOMObject* nomSelf, CORBA_Environment *ev) 99 { 100 /* NOMObjectData* nomThis=NOMObjectGetData(nomSelf); */ 101 PNOMObject nomRetval; 102 NOMClass* nomCls; 103 104 /* We don't know which class we're actually. So we can't just create a new object using 105 <CkassName>New() here. 106 It is possible that we are called by a subclass. So get the class object and let the 107 class object create the correct class. */ 108 nomCls=NOMObject_nomGetClass(nomSelf, NULLHANDLE); 109 return NOMClass_nomNew(nomCls, NULLHANDLE); 110 } 111 112 113
Note:
See TracChangeset
for help on using the changeset viewer.