[AGENT++] Determine instance within get_request

Frank Fock fock at agentpp.com
Wed Jul 7 08:46:02 CEST 2004


Marcus,

May be I do not fully understand your question, but the 
MibTable::get_request
determines the target MibLeaf instance by using the MibTable::find(const 
Oidx&)
method as follows:

void MibTable::get_request(Request* req, int ind)
{
    MibLeaf* o;
    if ((o = find(req->get_oid(ind))) != 0) {
      ...
    }
}

Does this answer your question?

Best regards,
Frank

Fehde, Marcus wrote:

>Good morning,
> 
>I have a MibTable with derived MibLeaf objects as the columns. I need to know the instance of the corresponding row within the get_request method. How can I determine it? Do I have to deal with the OID (part it into base, column and instance) or is there any other way I've not found, yet?
>
>Best regards/Mit freundlichen Gruessen 
>
>Marcus Fehde
>Dipl. Ing. Technische Informatik (FH)
>
>Research & Development 
>Business Unit Anaesthesia 
>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
>
>DRÄGER MEDICAL 
>
>Dräger Medical AG & Co. KGaA 
>Moislinger Allee 53-55 
>D-23542 Lübeck 
>
>Tel:  + 49-451-882-3646 
>Fax: + 49-451-882-4410 
>E-mail: marcus.fehde at draeger.com 
>www.draeger-medical.com 
>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
>
> 
> 
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>AGENTPP mailing list
>AGENTPP at agentpp.org
>http://agentpp.org/mailman/listinfo/agentpp
>  
>





More information about the AGENTPP mailing list