Important: This function is deprecated and is retained to ensure compatibility with previous versions of OpenAccess. Use the oaBaseInit overload that accepts the dataModelRev argument instead.
This function initializes the Base package. The Design, DM, and Tech packages automatically initialize the Base package. Applications do not need to call oaBaseInit if they are not using the databases (even if they are using the oaBase classes).
This function lets calling functions specify the API revisions that they support. Refer to Initialization Calls in the Programmers Guide for more information about these revision numbers and how they affect compatibility.
This deprecated version of oaBaseInit does not include the dataModelRev argument, which lets an application specify the data model revision that it supports. For applications that continue calling this init function, OpenAccess will infer the dataModelRev argument to be the current version (oacDataModelRevNumber) in the kit the application was compiled against. If there are differences between the inferred data model revisions between multiple components of the same application, OpenAccess chooses the highest dataModelRev of the application as a whole. If an application uses this approach, it is specifying that OpenAccess should tolerate possible data model revision mismatches between its components.
Refer to Compatibility for OpenAccess Applications and Data in the Programmers Guide for more information about API revisions and data model revisions. Also refer to Design Initialization in the Getting Started--A HelloWorld Example section of the Programmers Guide for a tutorial about using the non-deprecated overload of oaDesignInit.
- Parameters:
-
apiMajorRev | Do not supply -- defaulted by compiler |
apiMinorRev | Do not supply -- defaulted by compiler |
- Exceptions:
-
oacInvalidMajorAPIRev | The major revision number of the OpenAccess shared libraries that were used to compile the application does not match the major revision number of the OpenAccess shared libraries that the application is running. |
oacInvalidAPIRev | The minor revision number of the OpenAccess shared libraries that were used to compile the application is higher than the minor revision number of the OpenAccess shared libraries that the application is running. |
|