[AGENT++] #define collisions
Frank Fock
fock at agentpp.com
Thu Nov 30 22:14:37 CET 2006
Hi Chuck,
You may modify the templates to use "static const" definitions
to get around this problem. The next AgenPro version (templates)
will provide a solution for this.
Best regards,
Frank
Chuck Paterson wrote:
>
> Using agenpro to generate C++ I get the following in my .h file
>
> #define nStatementTypeCountHi 1
> #define cStatementTypeCountHi 2
> #define nStatementTypeCountLo 2
> #define cStatementTypeCountLo 3
> #define nStatementTypeTimeHi 3
> #define cStatementTypeTimeHi 4
> #define nStatementTypeTimeLo 4
> #define cStatementTypeTimeLo 5
>
>
> My worry is that if I have another MIB file that has an column entry
> of StatementTypeCountHi I have to make sure that the two header files
> are never needed in some other .cc or .h file. For instance
> using the generated module_includes.h. Requiring leaf objects
> to have unique names seems onerous.
>
> Is there some simple way around this that I'm missing? I have
> withModuleName=yes, but this doesn't seems to effect the defines.
>
> Chuck
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp
--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com
More information about the AGENTPP
mailing list