Cross-checking the column values in a row...

Frank Fock Frank.Fock____t-online.de
Wed Aug 21 19:16:41 CEST 2002


Hi Michael,

Since cross-checking also involves checking the order of the
changes made to a row, there is IMO no general approach.

One approach could be to check in the prepare_set_request
method the values of the other columns using the
MibLeaf::my_row member (or MibLeaf::my_table if you need to
cross-check with other rows).

If order of sub-requests counts you will also have to check
the other sub-requests in the request PDU you are processing.

Hope this helps.

Best regards,
Frank

Michael Grimes wrote:
> Hi,
> I have a requirement to cross-check the values of the columns in
> a row.  For example, if column X has a value of 1 than column Y
> must be between 1 and 10.  It appears that I can do this in the
> member function MibTable::ready_for_service when a row becomes
> active.  However, when one or more columns in an active row are changed
> (not the row status), there doesn't seem to be any way to perform
> this cross-check.  The individual MibLeaf::value_ok methods are
> called, but not a MibTable level method to perform the cross-check.
> 
> Any help would be appreciated,
> Michael
> 






More information about the AGENTPP mailing list