ObjectStore C++ API Reference

os_pathname_and_segment_number

This class is used by the compactor API to identify segments - see objectstore::compact(). It has two public data members and a constructor. Programs using this function must include <ostore/compact.hh>.

os_pathname_and_segment_number::database_pathname

const char *database_pathname;
The value of this member is the pathname of the database containing the segment identified by the specified os_pathname_and_segment_number.

os_pathname_and_segment_number::segment_number

os_unsigned_int32 segment_number;
The value of this member is the segment number of the segment identified by the specified os_pathname_and_segment_number. The segment number of a specified segment can be obtained with os_segment::get_number().

os_pathname_and_segment_number::
os_pathname_and_segment_number()

os_pathname_and_segment_number(
      const char *db, 
      os_unsigned_int32 seg_number
);
The constructor takes two arguments: the db argument initializes the member database_pathname, and the seg_number argument initializes the member segment_number.



[previous] [next]

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

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