Changeset 251 for trunk/nom/class_c/nomcls.c
- Timestamp:
- Mar 11, 2007, 2:22:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nom/class_c/nomcls.c
r242 r251 32 32 * 33 33 * ***** END LICENSE BLOCK ***** */ 34 /** \file noncls.c 35 36 Implementation file for the NOMClass class. 37 */ 34 38 #ifndef NOM_NOMClass_IMPLEMENTATION_FILE 35 39 #define NOM_NOMClass_IMPLEMENTATION_FILE … … 83 87 ncp=(NOMClassPriv*)_ncpObject; 84 88 89 /* Allocate memory big enough to hold an object. This means the size is that of the 90 mtab pointer and all instance variables. */ 85 91 if((nObj=_nomAllocate(nomSelf, ncp->mtab->ulInstanceSize, NULLHANDLE))==NULLHANDLE) 86 92 return NULLHANDLE; … … 149 155 150 156 /** 151 Function which implements the nomGet Name() method of NOMClass.157 Function which implements the nomGetCreatedClassName() method of NOMClass. 152 158 */ 153 NOM_Scope CORBA_string NOMLINK impl_NOMClass_nomGetName(NOMClass* nomSelf, CORBA_Environment *ev) 154 { 155 return nomSelf->mtab->nomClassName; 159 NOM_Scope CORBA_string NOMLINK impl_NOMClass_nomGetCreatedClassName(NOMClass* nomSelf, CORBA_Environment *ev) 160 { 161 NOMClassPriv* ncp; 162 163 /* The private struct characterizing the objects this meta class can create. */ 164 ncp=_nomGetObjectCreateInfo(nomSelf, NULLHANDLE); 165 166 if(!ncp) 167 return ""; /* That can not happen but anyway... */ 168 169 // return nomSelf->mtab->nomClassName; 170 return ncp->mtab->nomClassName; 156 171 } 157 172 … … 212 227 213 228 /* FIXME: no use of version information, yet. */ 214 //nomPrintf("I'm here (%s): ", _nomGetName(nomSelf, NULLHANDLE)); 215 if(!_nomFindClassFromName(NOMClassMgrObject, _nomGetName(nomSelf, NULLHANDLE), 229 230 //The following was used before changing nomGetname() 231 //if(!_nomFindClassFromName(NOMClassMgrObject, _nomGetName(nomSelf, NULLHANDLE), 232 // 0, 0, NULLHANDLE)) 233 if(!_nomFindClassFromName(NOMClassMgrObject, _nomGetClassName(nomSelf, NULLHANDLE), 216 234 0, 0, NULLHANDLE)) 235 217 236 { 218 237 NOMClassPriv* ncPriv;
Note:
See TracChangeset
for help on using the changeset viewer.