Generated Files

The wizard generates code into the specified destination folder. The file hierarchy is the following:

Generated Files Hierarchy

 

The root folder has two files and four subclusters.

The file generated.txt includes a list of all the files generated by the wizard.

The file component.log contains a summary of the processing done by the wizard. The name of the file is the name of the definition file appended with log (so Figure 10 presumes that the definition file was e.g. component.idl)

The folder idl contains the generated IDL file.

The folders Client and Server include the files generated respectively for reusing a component or creating a new component. Each consists of three subdirectories: Include comprises header files needed to compile the Eiffel code, CLib contains the generated C and C++ code as well as the library files. Component holds Eiffel code that wraps or defines the component. The Component subfolder of Server also includes the registration class. This Eiffel class contains the code needed to activate the component; it depends whether the component is in-process or out-of-process. You do not need to read or edit the C and C++ code included in CLib because the wizard automatically compiles it. It is given for information only and can be deleted (you need to keep the library file though). The Client and Server folders also have an Ace file used to compile the generated Eiffel code. In the case of a client, the generated code is precompiled whereas in the case of a server it is compiled in a normal system with the registration class being the root class of the system. In the case of an in-process server the Eiffel system is compiled into a DLL whereas in the case of an out-of-process server, it is compiled in a standard executable.

The Common folder comprises code that is used for both the server and the client parts. The Include and CLib directories contain respectively the header files and the C and C++ code. The C and C++ sources are not needed and can be deleted, only the library file needs to be kept for the Eiffel system to compile. The Interfaces subdirectory include Eiffel classes corresponding to the component interfaces and the Structures subdirectory includes Eiffel classes wrapping data structures specified in the definition file.

See Also:
Introduction Dialog and Main Window, Generated Code Type Dialog, Definition File Dialog, Eiffel Project File Dialog, Destination Folder Dialog, IDL Marshaling Definition Dialog, Type Library Marshaling Definition Dialog, Final Dialog, COM Definition File Processing, Eiffel Project Processing, Generated Files, Class Hierarchy, Accessing a Component, Building a Component