Changeset 353
- Timestamp:
- Jun 7, 2008, 10:41:05 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nom/Makefile.kmk
r347 r353 30 30 idl/nomtestcase.idl \ 31 31 idl/nomtestresult.idl \ 32 idl/nommethod.idl \ 32 33 \ 33 34 src/nomtkinit.c \ … … 46 47 class_c/nomarray.c \ 47 48 class_c/nomtestcase.c \ 48 class_c/nomtestresult.c 49 class_c/nomtestresult.c \ 50 class_c/nommethod.c 49 51 libnomobjtk_SOURCES.os2 = \ 50 52 $(PATH_TARGET)/nobjtk-os2.def -
trunk/nom/class_c/nomobj.c
r326 r353 54 54 #include "nomobj.ih" 55 55 56 #include "nomstring.h" 57 #include "nommethod.h" 56 58 #include "gc.h" 57 59 … … 124 126 125 127 /** 126 \brief This function implements the method nom GetClass() of class NOMObject.128 \brief This function implements the method nomQueryClass() of class NOMObject. 127 129 It returns a pointer to the class object of this object. 128 130 … … 131 133 \retval PNOMClass A pointer to the class object for this object. This can never be NULL. 132 134 */ 133 NOM_Scope PNOMClass NOMLINK impl_NOMObject_nom GetClass(NOMObject* nomSelf, CORBA_Environment *ev)135 NOM_Scope PNOMClass NOMLINK impl_NOMObject_nomQueryClass(NOMObject* nomSelf, CORBA_Environment *ev) 134 136 { 135 137 /* NOMObjectData* nomThis=NOMObjectGetData(nomSelf); */ … … 158 160 It is possible that we are called by a subclass. So get the class object and let the 159 161 class object create the correct class. */ 160 nomCls=NOMObject_nom GetClass(nomSelf, NULL);162 nomCls=NOMObject_nomQueryClass(nomSelf, NULL); 161 163 return NOMClass_nomNew(nomCls, NULL); 162 164 } … … 206 208 } 207 209 208 if(nomClass==_nom GetClass(nomSelf, NULL))210 if(nomClass==_nomQueryClass(nomSelf, NULL)) 209 211 return TRUE; 210 212 … … 220 222 return nomSelf->mtab->nomClassName; 221 223 } 224 225 226 NOMDLLEXPORT NOM_Scope void NOMLINK impl_NOMObject_nomGetMethodList(NOMObject* nomSelf, 227 const CORBA_boolean bIncludingParents, 228 CORBA_Environment *ev) 229 { 230 NOMClassPriv* ncPriv; 231 232 /* NOMObjectData* nomThis = NOMObjectGetData(nomSelf); */ 233 234 g_message("In %s (%d): %s", __FUNCTION__, __LINE__, _nomGetClassName(_nomQueryClass(nomSelf, NULL), NULL)); 235 236 ncPriv=(NOMClassPriv*)_nomGetObjectCreateInfo(_nomQueryClass(nomSelf, NULL), NULL); 237 238 if(ncPriv){ 239 gulong a, ulNumIntroducedMethods; 240 241 ulNumIntroducedMethods=ncPriv->sci->ulNumStaticMethods; 242 for(a=0;a< ulNumIntroducedMethods;a++) 243 { 244 NOMMethod* nMethod=NOMMethodNew(); 245 NOMString* ns; 246 247 _initData(nMethod, (gpointer) &ncPriv->sci->nomSMethods[a], NULL); 248 g_message("In %s (%d): %s %X", __FUNCTION__, __LINE__, *ncPriv->sci->nomSMethods[a].nomMethodId, nMethod /*chrMethodDescriptor*/); 249 250 g_message(" In %s (%d): %s\n", __FUNCTION__, __LINE__, _nomGetClassName(_getName(nMethod, NULL), NULL)); 251 252 253 //g_message(" In %s (%d): %X NOMString: %x", __FUNCTION__, __LINE__, nMethod, _getName(nMethod, NULL)); 254 255 g_message(" In %s (%d): NOMMethod: %x %s 3\n", __FUNCTION__, __LINE__, nMethod, _queryString(_getName(nMethod, NULL), NULL)); 256 257 } 258 //nomPrintf(" %s %s \n", nomSelf->mtab->nomClassName, ncPriv->mtab->nomClassName); 259 } 260 261 //nomPrintf("In %s: metaclass: %s, class: %s\n", __FUNCTION__, _nomGetClassName(_nomQueryClass(nomSelf, NULL), NULL), 262 // _nomGetClassName(nomSelf, NULL)); 263 264 } 265 -
trunk/nom/class_c/nomstring.c
r346 r353 67 67 { 68 68 NOMStringData* nomThis = NOMStringGetData(nomSelf); 69 69 70 70 g_string_assign(_gString, chrString); /* This copies the input string */ 71 71 return nomSelf; -
trunk/nom/exports.def
r348 r353 53 53 _NOMArrayClassData 54 54 _NOMArrayCClassData 55 NOMArray 55 NOMArrayNewClass 56 56 57 57 _NOMStringClassData 58 58 _NOMStringCClassData 59 NOMString 59 NOMStringNewClass 60 60 61 61 _NOMTestCaseClassData … … 66 66 _NOMTestResultCClassData 67 67 NOMTestResultNewClass 68 69 _NOMMethodClassData 70 _NOMMethodCClassData 71 NOMMethodNewClass 68 72 69 73 ; _NOMTest2ClassData -
trunk/nom/idl/nomobj.idl
r281 r353 125 125 \return Pointer to the class object 126 126 127 \sa impl_NOMObject_nom GetClass()128 */ 129 PNOMClass nom GetClass();127 \sa impl_NOMObject_nomQueryClass() 128 */ 129 PNOMClass nomQueryClass(); 130 130 131 131 /** … … 226 226 boolean nomIsANoClsCheck(in PNOMClass nomClass); 227 227 228 void nomGetMethodList(in boolean bIncludingParents); 228 229 }; 229 230 -
trunk/nom/idl/nomtestresult.idl
r347 r353 33 33 * ***** END LICENSE BLOCK ***** */ 34 34 35 #ifndef NOMTEST CASE_IDL_INCLUDED36 #define NOMTEST CASE_IDL_INCLUDED35 #ifndef NOMTESTRESULT_IDL_INCLUDED 36 #define NOMTESTRESULT_IDL_INCLUDED 37 37 38 38 #include "nomobj.idl" … … 65 65 }; 66 66 67 #endif /* NOMTEST CASE_IDL_INCLUDED */67 #endif /* NOMTESTRESULT_IDL_INCLUDED */ 68 68 69 69 -
trunk/tests/Makefile.kmk
r341 r353 123 123 124 124 125 # 126 # Program for playing around. 127 # 128 PROGRAMS += nom-play 129 nom-play_TEMPLATE = nombin 130 nom-play_SOURCES = \ 131 c/nom-play.c 132 ifeq ($(BUILD_TARGET),win) 133 nom-play_LIBS = \ 134 $(TARGET_libnomtest:.dll=.lib) 135 else 136 nom-play_LIBS = \ 137 $(TARGET_libnomtest) 138 endif 139 125 140 endif # NOM_WITH_TESTCASES 126 141
Note:
See TracChangeset
for help on using the changeset viewer.