Keywords: classdesc

Next: The construction of an Up: C++ model Objective-C design Previous: Parameter passing between C++ Contents Index

### Classdesc modification to parse a user supplied C++ model

Classdesc is used to generate an action definition `write_objc` that is a program generator outputting the Objective C definitions representing the C++ object. Classdesc takes a flag `-objc` to enable the right sort of output. The An example of the Classdesc output is shown in Figure 10.

Figure 10: An example of Classdesc output

The output from the Classdesc is stored in the `.cd` file, which consists mostly of `writeobjc` statements (or actions). These overloaded writeobjc statements will recursive descend the class definition performing the ``translation" operation on each primitive data type making-up the class. The definitions of `writeobjc` actions on all primitive data type, including member function type, are defined in the `writeobjc_base.h` file (Classdesc base action definition file).