About the range of index
Frank Fock
Frank.Fock____t-online.de
Sat May 17 13:26:11 CEST 2003
Hi Robert,
which version of AgentGen are you using? What is
exactly your question? The code works and it is
called when MibLeaf::prepare_set_request is executed.
So either, you do not call that method in your
derived hwNmFaultQueryConditionDeviceType (and thus
you have removed that call) or you do not test the
right object.
BTW, your company has bought a license for AgenPro
yet. Using it anyway, not only violates international
laws, it is also a guarantee to not receive any
support.
Best regards,
Frank Fock
罗先录 wrote:
> Hi,Frank
>
> When I set the range of index and other variables, agentGen will
> generate code like these:
>
> boolean hwNmFaultQueryConditionDeviceType::value_ok(const Vbx& vb)
> {
> long v;
> vb.get_value(v);
> if (!(((v >= 0) && (v <= 255))))
> return FALSE;
>
> file://--AgentGen BEGIN=hwNmFaultQueryConditionDeviceType::value_ok
> file://--AgentGen END
> return TRUE;
> }
>
> But it can not work before commit_set_request;I can set value above 255
> freely.
> Would you PLS give me some explanation?
>
> warm regards,
> ~Robert
More information about the AGENTPP
mailing list