[AGENT++] Determine instance within get_request
Mr. AWD
mrawd at excite.com
Wed Jul 7 16:05:36 CEST 2004
You could also get the OID of the particular request and get it from there. That will tell you which instance you are being asked for.
void YourMibTable::get_request(Request* req, int ind)
{
Oidx oOid(req->get_oid(ind));
}
Fedja
--- On Wed 07/07, Fehde, Marcus < Marcus.Fehde at draeger.com > wrote:From: Fehde, Marcus [mailto: Marcus.Fehde at draeger.com]To: fock at agentpp.com Cc: agentpp at agentpp.orgDate: Wed, 7 Jul 2004 08:54:03 +0200Subject: RE: [AGENT++] Determine instance within get_requestHi 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
>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
More information about the AGENTPP
mailing list