ObjectStore C++ API Reference

os_database_reference

Instances of this type are stored in tables associated with cross-database pointers. Such pointers are resolved by database pathname.

The types os_int32 and os_boolean, used throughout this manual, are each defined as a signed 32-bit integer type. The type os_unsigned_int32 is defined as an unsigned 32-bit integer type.

All ObjectStore programs must include the header file <ostore/ostore.hh>.

os_database_reference::os_database_reference()

os_database_reference(char *name);
Constructs a reference that stores the specified pathname. The name argument should be the pathname of the referent database as printed by the ObjectStore utility ossize, including the Server host prefix.

os_database_reference::~os_database_reference()

~os_database_reference();
Frees the memory associated with the specified os_database_reference's name.

os_database_reference::delete_array()

static void delete_array(os_int32 n, 
      os_database_referencep*array
);
Deletes an array returned by os_database::get_database_references().

os_database_reference::get_name()

char *get_name();
Returns the pathname associated with the specified os_database_reference.

os_database_reference::operator ==()

os_boolean operator ==(os_database_reference const &dbref);
Returns nonzero if and only if the specified os_database_references refer to the same database.



[previous] [next]

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

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