Implementing the PODSObject object

All objects in the client extension (PODS) API inherit from the PODSObject object. You must implement each of your PODS objects with the three basic PODSObject methods:

  • getVersion( ) gets the version of M-Business Client whose interface definitions were used to build this object.

  • getMethod( ) returns a pointer to an object's method for the specified name.

  • destroy( ) frees any internal storage associated with a PODS object.

See PODSObject object.

There is no default implementation of the PODSObject methods. You must explicitly implement the PODSObject methods in your object's vtable. For most normal objects, the code to implement your PODSObject methods would look something like this:

vtable->m_getVersion = myGetVersion;
vtable->m_destroy = myDestroy;
vtable->m_getMethod = myGetMethod;

For more examples of PODSObject object implementations, see the sample code listings in PODS Code Samples.