7.3   Code Generation Prerequisites

AgenPro's code generation process is illustrated by figure “Code Generation Process” on page 29. Before the code generation itself can be started by choosing Generate AgenProManual00023.png from the Project menu, there are a few tasks to be done beforehand (steps 1-5):

1.   Compile your MIB files into AgenPro's MIB Repository.

2.   Load the MIB modules you want to generate code for into the MIB tree.

3.   Create a new project using the project wizard (see “Accessing the Proj­ect Wizard” on page 13). If you intend to generate code for AGENT++ or SNMP4J-Agent, then you might want to open the example projects located in the projects directory of the AgenPro installation. If you intend to generate code for any other SNMP agent or manager API, then you should read the section “Customizing Code Generation” on page 32 first. This is also recommended if you would like to customize code generation for AGENT++ or SNMP4J-Agent.

4.   Assign properties that parameterize the code generation process to MIB nodes.

5.   Save the project.

6.   Generate the program code.

AgenProManual00024.png

 

Figure 3:   Code Generation Process