[AGENT++] Asn1 class hierarchy and smival

Apostolos Manolitzas manap at intracom-telecom.com
Wed Mar 22 13:19:51 CET 2017


Hello all,

one question design oriented. Why the smival is included in the abstract
interface of SnmpSyntax? Unless I am missing something,  the smival can
be propagated into the child classes, based on the needs without
breaking the design which is covered by the abstract interface. The
problem rises from the size of to the produced classes/objects which
inherit the smival while it's not used.
For example

 SnmpSyntax::get_syntax() =0

provides the syntax of the type, why it should be carried around in
smival too?



Thanks for any thoughts on that,

-Apostolos






More information about the AGENTPP mailing list