Adding your source code to the code generated by BladeSmith
For each of the support routine types you selected in
the New Opaque Type wizard, BladeSmith generates the following functions
for the Pnt and Circ data types in the Pnt.c and Circ.c source
code files.
Support routine category | Routines for Pnt | Routines for Circ |
---|---|---|
Text input and output functions | PntInput(), PntOutput() | CircInput(), CircOutput() |
Binary send and receive functions | PntSend(), PntReceive() | CircSend(), CircReceive() |
Type compare functions | PntCompare(), PntEqual(), PntNotEqual() | CircCompare(), CircEqual(), CircNotEqual() |
Look at the source code for each of these routines. You can see them in Visual C++ under the Source Files node in the File view. You do not need to modify these routines. BladeSmith creates complete support routines to manipulate the data types that compose the Pnt and Circ opaque types.
You must implement the following functions for the Circle DataBlade module,
which you can see under the Globals node in
the Class view:
- Distance()
- Contains()
These functions are in the udr.c source code file.
To implement the Distance() and Contains() functions: