ObjectStore C++ API Reference

os_schema

This class is part of the ObjectStore metaobject protocol, which provides access to ObjectStore schemas. An instance of this abstract base class represents a schema. The classes os_comp_schema, os_app_schema, and os_database_schema are derived from os_schema.

Programs using this class must include <ostore/ostore.hh>, followed by <ostore/coll.hh> (if used), followed by <ostore/mop.hh>.

os_schema::get_classes()

os_collection get_classes() const;
Returns a collection of the classes in the schema. Each element of the returned collection points to a const os_class_type.

os_schema::get_kind()

enum os_schema_kind { 
      Compilation_schema, 
      Application_schema,
      Database_schema
};
os_schema_kind get_kind () const;
Returns an enumerator indicating the kind of the specified schema.

os_schema::find_type()

const os_type *find_type(const char *typename) const;
Returns a pointer to the type with the specified name in the specified schema. The name can designate a class or any C++ fundamental type. All pointer types are treated identically, and result in the type for void*'s being returned. If there is no type with the specified name, 0 is returned. For nested classes, the name must be a fully qualified name that describes the path to the nested class, for example, outer::inner.

os_schema::operator const os_app_schema&()

operator const os_app_schema&() const;
Provides safe conversion to const os_app_schema&. If the conversion is not permissible, err_mop_illegal_cast is signaled.

os_schema::operator const os_comp_schema&()

operator const os_comp_schema&() const;
Provides safe conversion to const os_comp_schema&. If the conversion is not permissible, err_mop_illegal_cast is signaled.

os_schema::operator const os_database_schema&()

operator const os_database_schema&() const;
Provides safe conversion to const os_database_schema&. If the conversion is not permissible, err_mop_illegal_cast is signaled.

os_schema::operator os_app_schema&()

operator os_app_schema&();
Provides safe conversion to os_app_schema&. If the conversion is not permissible, err_mop_illegal_cast is signaled.

os_schema::operator os_comp_schema&()

operator os_comp_schema&();
Provides safe conversion to os_comp_schema&. If the conversion is not permissible, err_mop_illegal_cast is signaled.

os_schema::operator os_database_schema&()

operator os_database_schema&();
Provides safe conversion to os_database_schema&. If the conversion is not permissible, err_mop_illegal_cast is signaled.



[previous] [next]

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

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