Changeset 219 for trunk/nom/idl/nomobj.idl
- Timestamp:
- Feb 3, 2007, 6:59:37 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/nom/idl/nomobj.idl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/nom/idl/nomobj.idl
r210 r219 44 44 NOMCLASSVERSION(1, 0 ); 45 45 46 /** 47 This method is intended to be overriden by classes which need some initialization. 48 49 \par How to override 50 The parent class must always be called first when overriden. 51 52 \sa impl_NOMObject_nomInit() 53 */ 46 54 void nomInit(); 55 56 /** 57 This method is intended to be overriden by classes which need some uninitialization. 58 Note that when overriding the method the garbage collector will add the object 59 to the list of objects with a finalizer. The finalizer will be run when the object is 60 collected and calls nomUnInit() to give the object a chance for cleanup. 61 62 \note It's not necessary to free memory in nomUnInit(). This is the job of the garbage collector. 63 Only system resources like file handles etc. must be explicitely freed. 64 65 \par How to override 66 The parent method must be called after doing the own processing. 67 68 \sa impl_NOMObject_nomUnInit() 69 */ 47 70 void nomUnInit(); 48 /* Return the size of the object. That is sizeof(mTab*)+sizeof(all instance vars) */ 71 72 /** 73 Return the size of the object. That is sizeof(mTab*)+sizeof(all instance vars) 74 75 \par How to override 76 This method is usually not overriden. 77 78 \sa impl_NOMObject_nomGetSize() 79 */ 49 80 long nomGetSize(); 81 82 /** 83 This method calls nomUnInit() to give the object a chance of freeing system resources. 84 Afterwards the memory occupied by the object is given back to the system and the 85 object is not accessible anymore. 86 87 \sa impl_NOMObject_delete() 88 */ 50 89 void delete(); 90 91 /** 92 This method returns a pointer to the class object of this object. 93 94 \par How to override 95 This method is usually not overriden. 96 97 \return Pointer to the class object 98 99 \sa impl_NOMObject_nomGetClass() 100 */ 51 101 PNOMClass nomGetClass(); 102 103 /** 104 Create a new class of the kind the caller is. This method ensures that subclasses 105 are properly handled without the need to override this method in every subclass. 106 107 This method will get the class object of nomSelf and call nomNew() on it creating 108 a new object which has exactly the same class hierarchy of nomSelf. 109 110 \par How to override 111 This method is usually not overriden. 112 113 \return Pointer to a new object of the same kind as nomSelf. Note that this won't 114 create an exact copy but a completely new objecct. 115 116 \sa impl_NOMObject_new() 117 */ 52 118 PNOMObject new(); 53 #if 054 NOMOVERRIDE(wpEchoString);55 NOMINSTANCEVAR(long theLong);56 #endif57 119 }; 58 120
Note:
See TracChangeset
for help on using the changeset viewer.
