C++ API Benefits
Allows user access to an object-oriented programming interface.
Memory management is taken care of by the C++ API.
- No worrying about SE_Stores.
Simplified methods for accessing fields, rather than C structure based access.
Error handling advantages
- Can always trap API exceptions without a lot of code.
- Exception mechanism handles clean up on errors:
- Outstanding object references
- Closing transmittals
Possible to extend API class functionality:
- Class inheritance
- Operator overloading