Changeset 251 for trunk/nom/class_c/nomobj.c
- Timestamp:
- Mar 11, 2007, 2:22:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nom/class_c/nomobj.c
r222 r251 16 16 * The Initial Developer of the Original Code is 17 17 * netlabs.org: Chris Wohlgemuth <cinc-ml@netlabs.org>. 18 * Portions created by the Initial Developer are Copyright (C) 2005-200 618 * Portions created by the Initial Developer are Copyright (C) 2005-2007 19 19 * the Initial Developer. All Rights Reserved. 20 20 * … … 32 32 * 33 33 * ***** END LICENSE BLOCK ***** */ 34 /** \file nomobj.idl 35 36 Implementation file for the NOM class NOMObject. 37 */ 38 34 39 #ifndef NOM_NOMObject_IMPLEMENTATION_FILE 35 40 #define NOM_NOMObject_IMPLEMENTATION_FILE … … 49 54 50 55 /** 51 52 56 \brief This function implements the method nomInit() of class NOMObject. 53 57 */ 54 58 NOM_Scope void NOMLINK impl_NOMObject_nomInit(NOMObject *nomSelf, CORBA_Environment *ev) 55 59 { 56 //nomPrintf(" Entering %s (%x) with nomSelf: 0x%x. nomSelf is: %s.\n", 57 // __FUNCTION__, impl_NOMObject_nomInit, nomSelf , nomSelf->mtab->nomClassName); 58 } 59 60 /** 61 60 61 } 62 63 /** 62 64 \brief This function implements the method nomUnInit() of class NOMObject. 63 65 */ … … 71 73 72 74 /** 73 74 75 \brief This function implements the method nomGetSize() of class NOMObject. 75 76 */ … … 87 88 88 89 /** 89 90 90 \brief This function implements the method delete() of class NOMObject. 91 91 … … 121 121 122 122 /** 123 124 123 \brief This function implements the method nomGetClass() of class NOMObject. 125 124 It returns a pointer to the class object of this object. … … 162 161 163 162 163 NOM_Scope CORBA_boolean NOMLINK impl_NOMObject_nomIsA(NOMObject* nomSelf, const PNOMClass nomClass, CORBA_Environment *ev) 164 { 165 /* NOMObjectData* nomThis=NOMObjectGetData(nomSelf); */ 166 NOMClassPriv* ncp; 167 nomMethodTabs mtabs; /* List of mtabs */ 168 169 if(!nomIsObj(nomClass)){ 170 g_warning("%s: class object pointer nomClass does not point to an object.", __FUNCTION__); 171 return FALSE; 172 } 173 174 /* Check if we have the class in our list of classes */ 175 ncp=(NOMClassPriv*)nomSelf->mtab->nomClsInfo; 176 mtabs=&ncp->mtabList; 177 while(mtabs) 178 { 179 if(nomClass==mtabs->mtab->nomClassObject) 180 return TRUE; 181 182 mtabs=mtabs->next; 183 } 184 return FALSE; 185 } 186 187 188 NOM_Scope CORBA_boolean NOMLINK impl_NOMObject_nomIsInstanceOf(NOMObject* nomSelf, const PNOMClass nomClass, CORBA_Environment *ev) 189 { 190 /* NOMObjectData* nomThis=NOMObjectGetData(nomSelf); */ 191 192 if(!nomIsObj(nomClass)){ 193 g_warning("%s: class object pointer nomClass does not point to an object.", __FUNCTION__); 194 return FALSE; 195 } 196 197 if(nomClass==_nomGetClass(nomSelf, NULLHANDLE)) 198 return TRUE; 199 200 return FALSE; 201 } 202 203 /** 204 Function which implements the nomGetClassName() method of NOMObject. 205 */ 206 NOM_Scope CORBA_string NOMLINK impl_NOMObject_nomGetClassName(NOMObject* nomSelf, CORBA_Environment *ev) 207 { 208 /* NOMObjectData* nomThis=NOMObjectGetData(nomSelf); */ 209 return nomSelf->mtab->nomClassName; 210 }
Note:
See TracChangeset
for help on using the changeset viewer.