Changeset 251 for trunk/nom/idl


Ignore:
Timestamp:
Mar 11, 2007, 2:22:39 PM (19 years ago)
Author:
cinc
Message:

Implemented some methods. Bug fixes and documentation.

Location:
trunk/nom/idl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/nom/idl/nomcls.idl

    r250 r251  
    6565
    6666  /**
    67      This method returns the name of the class this class object is an instance of.
     67     This method returns the name of the class this class object is the meta class of. This
     68     means the returned string is the name of the class the metaclass creates instances of.
     69
     70     \remarks This method used to be called nomGetName().
    6871
    6972     \par How to override:
    7073     This method is usually not overriden.
    7174
    72      \sa impl_NOMClass_nomGetName()
     75     \sa nomGetClassName()
    7376   */
    74   string nomGetName();
     77  string nomGetCreatedClassName();
    7578
    7679  /**
     
    104107     method is always called during object creation.
    105108
    106      \par How to override
     109     \par How to override:
    107110     This method can be overriden to track the creation of objects. When doing so
    108111     the parent should be called first.
     
    130133     this method does nothing. It's for compatibility with ported code.
    131134
    132      \par How to override
     135     \par How to override:
    133136     This method is usually not overriden.
    134137 
     
    137140  void nomDeallocate(in gpointer memptr);
    138141  void nomSetObjectCreateInfo(in gpointer ncpObject);
     142
     143  /**
     144     \remarks
     145     The return type may change.
     146   */
    139147  gpointer nomGetObjectCreateInfo();
    140148
     
    145153     also be registered.
    146154
     155     \remarks This method is only called by the system during class creation.
     156
     157     \par How to override:
     158     This method is usually not overriden.
     159
    147160     \sa impl_NOMClass_nomClassReady()
    148161   */
    149162  void nomClassReady();
    150163
     164  /**
     165     \warning
     166     The type of this variable will change!
     167  */
    151168  NOMINSTANCEVAR(string ncpObject);     //NOMClassPriv structure holding info about the object this class can create
    152169  NOMOVERRIDE(nomInit);
  • trunk/nom/idl/nomobj.idl

    r250 r251  
    161161   */
    162162  PNOMObject new();
     163
     164  /**
     165     This method checks if the object is an instance of the given class or some subclass. Using
     166     this method one can make sure some feature is available if the introducing class is known.
     167     Every subclass of a given class also supports the features of the introducing class.
     168
     169     \remarks This method checks the validity of \e nomClass using nomIsObj() and returns FALSE
     170     in case it's not an object.
     171
     172     \param nomClass Pointer to a class object.
     173
     174     \returns TRUE if the object is an instance of the given class or one of its
     175     subclasses.
     176
     177     \sa nomIsInstanceOf()
     178   */
     179  boolean nomIsA(in PNOMClass nomClass);
     180
     181  /**
     182     This method checks if the object is an instance of exactly the given class.
     183
     184
     185     \remarks This method checks the validity of \e nomClass using nomIsObj() and returns FALSE
     186     in case it's not an object.
     187
     188     \param nomClass Pointer to a class object.
     189
     190     \returns TRUE if the object is an instance of exactly the given class.
     191
     192     \sa nomIsA()
     193   */
     194  boolean nomIsInstanceOf(in PNOMClass nomClass);
     195  /**
     196     This method returns the name of the class this object is an instance of.
     197     
     198     \par How to override:
     199     This method is usually not overriden.
     200     
     201     \returns A null terminated C string. Note that this is not a copy. The string
     202     is valid as long as the class object exists (not the instance).
     203
     204     \sa impl_NOMClass_nomGetClassName()
     205  */
     206  string nomGetClassName();
     207
     208
    163209};
    164210
Note: See TracChangeset for help on using the changeset viewer.