ObjectStore C++ API Reference

os_rawfs_entry

The functions os_dbutil:stat() and os_dbutil::list_directory() return pointers to instances of this class. Each os_rawfs_entry represents a rawfs directory, database, or link.

os_rawfs_entry::get_abs_path()

const char *get_abs_path() const;
Returns the absolute pathname for the specified entry.

os_rawfs_entry::get_creation_time()

os_unixtime_t get_creation_time() const;
Returns the creation time for the specified entry.

os_rawfs_entry::get_group_name()

const char *get_group_name() const;
Returns the name of the primary group for the specified entry.

os_rawfs_entry::get_link_host()

const char *get_link_host() const;
Returns the name of the host for the target of the link represented by the specified entry. If the entry does not represent a link, 0 is returned.

os_rawfs_entry::get_link_path()

const char *get_link_path() const;
Returns the pathname of the target of the link represented by the specified entry. If the entry does not represent a link, 0 is returned.

os_rawfs_entry::get_n_sectors()

os_unsigned_int32 get_n_sectors() const;
Returns the number of sectors in the specified entry.

os_rawfs_entry::get_name()

const char *get_name() const;
Returns the terminal component of the pathname for the specified entry.

os_rawfs_entry::get_permission()

os_unsigned_int32 get_permission() const;
Returns a bit-wise disjunction representing the permissions on the specified entry.

os_rawfs_entry::get_server_host()

const char *get_server_host() const;
Returns the name of the host for the specified entry.

os_rawfs_entry::get_type()

os_int32 get_type() const;
Returns an enumerator indicating whether the specified entry represents a directory, database, or link. One of the following enumerators is returned:

os_rawfs_entry::get_user_name()

const char *get_user_name() const;
Returns the name of the user for the specified entry.

os_rawfs_entry::is_db()

os_boolean is_db() const;
Returns nonzero if the specified entry represents a database; returns 0 otherwise.

os_rawfs_entry::is_dir()

os_boolean is_dir() const;
Returns nonzero if the specified entry represents a directory; returns 0 otherwise.

os_rawfs_entry::is_link()

os_boolean is_link() const;
Returns nonzero if the specified entry represents a link; returns 0 otherwise.

os_rawfs_entry::operator =()

os_rawfs_entry &operator =(const os_rawfs_entry&);
Modifies the left operand so that it is a copy of the right operand. The copy behaves just like the original with respect to the member functions of os_rawfs_entry.

os_rawfs_entry::OSU_DATABASE

Enumerator used as possible return value for os_rawfs_entry::get_type(), indicating that the specified os_rawfs_entry represents a database.

os_rawfs_entry::OSU_DIRECTORY

Enumerator used as possible return value for os_rawfs_entry::get_type(), indicating that the specified os_rawfs_entry represents a directory.

os_rawfs_entry::OSU_LINK

Enumerator used as possible return value for os_rawfs_entry::get_type(), indicating that the specified os_rawfs_entry represents a link.

os_rawfs_entry::os_rawfs_entry()

os_rawfs_entry(const os_rawfs_entry&);
Creates an os_rawfs_entry that is a copy of the specified os_rawfs_entry. The copy behaves just like the original with respect to the member functions of the class os_rawfs_entry.

os_rawfs_entry::~os_rawfs_entry()

~os_rawfs_entry();
Frees storage associated with the specified os_rawfs_entry.



[previous] [next]

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

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