[AGENT++] Determine instance within get_request

Fehde, Marcus Marcus.Fehde at draeger.com
Wed Jul 7 08:54:03 CEST 2004


Hi Frank,

What I mean is how can I determine the instance of the row within the get_request / commit_set_request method of the leaf object.

Regards,
Marcus


-----Original Message-----
From: Frank Fock [mailto:fock at agentpp.com] 
Sent: Mittwoch, 7. Juli 2004 08:46
To: Fehde, Marcus
Cc: agentpp at agentpp.org
Subject: Re: [AGENT++] Determine instance within get_request


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
>  
>


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: InterScan_Disclaimer.txt
Url: http://lists.agentpp.org/pipermail/agentpp/attachments/20040707/8e4f953c/attachment.txt 


More information about the AGENTPP mailing list