home *** CD-ROM | disk | FTP | other *** search
- #ifndef Datastore_idl
- #define Datastore_idl
-
- #include <somcls.idl>
- #include <sdsmcbs.idl>
- #include <sdsexc.idl>
-
- /***********************************************
-
- Licensed Materials - Property of IBM
-
- 5622-880 5801-AAR
-
- (c) Copyright IBM Corp 1991, 1996.
-
- ************************************************/
-
- interface Datastore;
-
- interface DatastoreFactory : SOMClass {
-
- Datastore create_object();
- Datastore create_object_defaults(in string datastore_name,
- in string user_name,
- in string authentication);
-
- #ifdef __SOMIDL__
- implementation {
-
- releaseorder : create_object,
- create_object_defaults;
- passthru C_xh = "#ifndef __TOS_WIN__ "
- " #ifndef __NO_DEFAULT_LIBS__ "
- " #pragma library(\"SOMTK.LIB\") "
- " #ifdef __IMPORTLIB__ "
- " #pragma library(\"CPPOAI3I.LIB\") "
- " #else "
- " #pragma library(\"CPPOAI3.LIB\") "
- " #endif "
- " #endif "
- "#else "
- " #ifndef __NO_DEFAULT_LIBS__ "
- " #pragma library(\"SOMTK.LIB\") "
- " #ifdef __IMPORTLIB__ "
- " #pragma library(\"CPPWAI3I.LIB\") "
- " #else "
- " #pragma library(\"CPPWAI3.LIB\") "
- " #endif "
- " #endif "
- "#endif "
- "#include <idaxbs.h> ";
- passthru C_h = "#ifndef __TOS_WIN__ "
- " #ifndef __NO_DEFAULT_LIBS__ "
- " #pragma library(\"SOMTK.LIB\") "
- " #ifdef __IMPORTLIB__ "
- " #pragma library(\"CPPOAI3I.LIB\") "
- " #else "
- " #pragma library(\"CPPOAI3.LIB\") "
- " #endif "
- " #endif "
- "#else "
- " #ifndef __NO_DEFAULT_LIBS__ "
- " #pragma library(\"SOMTK.LIB\") "
- " #ifdef __IMPORTLIB__ "
- " #pragma library(\"CPPWAI3I.LIB\") "
- " #else "
- " #pragma library(\"CPPWAI3.LIB\") "
- " #endif "
- " #endif "
- "#endif "
- "#include <idaxbs.h> ";
-
- #ifndef WIN_NT_BUILD
- dllname = "cppoai3i.dll";
- #else
- dllname = "cppwai3i.dll";
- #endif
-
- };
- #endif
-
- };
-
-
- interface Datastore : DatastoreBase {
-
- boolean
- is_sharemode_exclusive ();
-
- void
- enable_sharemode_exclusive ( in boolean enable );
-
- #ifdef __SOMIDL__
- implementation
- {
- metaclass = DatastoreFactory;
-
- releaseorder:
- is_sharemode_exclusive,
- enable_sharemode_exclusive;
-
- passthru C_xih = "#include \"sdsmcon.xh\"";
- #ifndef WIN_NT_BUILD
- dllname = "cppoai3i.dll";
- #else
- dllname = "cppwai3i.dll";
- #endif
-
- somInit: override;
- somUninit: override;
- };
- #endif
-
-
- };
- #endif
-