[AGENT++] AgenPro 3.0 code generation problem for TestAndIncr

Frank Fock fock at agentpp.com
Wed Mar 9 23:54:41 CET 2011


Hi Claus,

I would recommend defining your own subclass of
TestAndIncr with appropriate constructor
(like MibLeaf) and mapping code to TestAndIncr
in its constructor.

That class you can then specify in leafSuperClass.

With the above approach you are, in addition,
independent to changes of TestAndIncr.

Best regards,
Frank


On 09.03.2011 21:44, Claus Klein wrote:
> Hi all,
>
> I want to generate  code for agent++ to implement a MIB Table with
> TestAndIncr.
>
> I used leafSuperClass property to define TestAndInrc as leaf object's
> superclass.
>
> But the constructor code generated does not match the TestAndIncr
> signature.
> (same parameters as used for MibLeaf constructor call are generated)
>
> Is there a better solution to get code generated witch compiles for
> this case?
>
> With regards
>
> Claus
>
>
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp

-- 
AGENT++
http://www.agentpp.com
http://www.snmp4j.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the AGENTPP mailing list