[AGENT++] Why MibTable pointer comes in as NULL?

Frank Fock fock at agentpp.com
Thu Dec 23 23:45:40 CET 2004


Fedja,

The src pointe ris NULL because the row deletion event's source is the
myEntry table itself. If the source would be another table (e.g. a base
table) then the pointer will be not NULL. The pointer can then be used
to access data from the base table or to call a method on the base table.

Best regards,
Frank


Fedja Jeleskovic wrote:

>I was trying to add some code inside the row_delete member function, and I
>was surprise that MibTable *src pointer comes in as NULL!
>myEntry::row_delete(MibTableRow* row, const Oidx& index, MibTable* src)
>{
>...
>}
>The strange thing about all is that myEntry is a MibTable by itself, so I
>was wondering what is going on here. What is this pointer for?
>
>Thanks
>
>
>Fedja
>
>_______________________________________________
>AGENTPP mailing list
>AGENTPP at agentpp.org
>http://agentpp.org/mailman/listinfo/agentpp
>
>  
>





More information about the AGENTPP mailing list