ObjectStore C++ API Reference

os_schema_info

This is the common base class for os_application_schema_info and os_DLL_schema_info. It is designed for use with component schema and application schema.

Include files
You must include the header file <ostore/nreloc/schftyps.hh>.

os_schema_info::get()

os_schema_handle& get();
Given an os_schema_info, this function finds the corresponding os_schema_handle. Throws an err_misc exception if this is an os_DLL_schema_info and os_DLL_schema_info::DLL_loaded() has not been called, or this is an os_application_schema_info and the initialization that loads the application schema has not yet run.

os_schema_info::get_DLL_identifiers()

const char* const* get_DLL_identifiers(
      os_unsigned_int32& count
) const;
Returns an array of pointers to DLL identifiers and the number of elements in the array, given an os_schema_info. The caller must not modify or deallocate the strings or the array. If the this argument designates an application schema, the result is null and count is set to zero.

os_schema_info::get_schema_database_pathname()

const char* get_schema_database_pathname() const;
Returns the schema database pathname.

os_schema_info::set_schema_database_pathname()

void set_schema_database_pathname(const char* new_pathname);
Sets the schema database pathname. This has no useful effect if the schema has already been loaded.

Like objectstore::set_application_schema_pathname(), this has a 255-character limit and copies over the existing pathname.



[previous] [next]

Copyright © 1997 Object Design, Inc. All rights reserved.

Updated: 03/31/98 17:25:09