Changeset 354 for trunk/nom/class_c


Ignore:
Timestamp:
Jun 7, 2008, 12:01:47 PM (17 years ago)
Author:
cinc
Message:

nomGetMethodList() improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nom/class_c/nomobj.c

    r353 r354  
    5656#include "nomstring.h"
    5757#include "nommethod.h"
     58#include "nomarray.h"
    5859#include "gc.h"
    5960
     
    223224}
    224225
    225 
    226 NOMDLLEXPORT NOM_Scope void NOMLINK impl_NOMObject_nomGetMethodList(NOMObject* nomSelf,
    227                                                                     const CORBA_boolean bIncludingParents,
    228                                                                     CORBA_Environment *ev)
     226/*
     227 Create a new NOMArray holding NOMMethod objects.
     228 */
     229NOMDLLEXPORT NOM_Scope NOMObject* NOMLINK impl_NOMObject_nomGetMethodList(NOMObject* nomSelf,
     230                                                                          const CORBA_boolean bIncludingParents,
     231                                                                          CORBA_Environment *ev)
    229232{
    230233  NOMClassPriv* ncPriv;
     234  NOMArray*nomArray=NOMArrayNew();
    231235 
    232236  /* NOMObjectData* nomThis = NOMObjectGetData(nomSelf); */
    233 
    234   g_message("In %s (%d): %s", __FUNCTION__, __LINE__, _nomGetClassName(_nomQueryClass(nomSelf, NULL), NULL));
     237 
     238  if(TRUE==bIncludingParents)
     239    g_message("Flag ˚bIncludeParents˚ not supported yet");
    235240 
    236241  ncPriv=(NOMClassPriv*)_nomGetObjectCreateInfo(_nomQueryClass(nomSelf, NULL), NULL);
     
    243248    {
    244249      NOMMethod* nMethod=NOMMethodNew();
    245       NOMString* ns;
    246250     
    247251      _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));
    251252     
    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      
     253      NOMArray_append(nomArray, nMethod, NULL);
    257254    }
    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 
     255  }
     256  return nomArray;
     257}
     258
Note: See TracChangeset for help on using the changeset viewer.