Next: Making a Shared Library
Up: Writing a C++ Provider
Previous: Multiple Inheritance
  Contents
Once the class is written, all that is left is to provide a factory
function that the CIMOM uses to load the provider. A macro is provided
to make this very easy. If your C++ class is called
MyInstanceProvider, simply put this line in your file:
OW_PROVIDERFACTORY(MyInstanceProvider, myinstprov);
The first argument is the C++ class name. The second argument is
the identifier that the provider will be known as in MOF.
Bart Whiteley
2002-12-12