Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

RegNodeFile Class Reference

#include <vfs.h>

Inheritance diagram for RegNodeFile:

ht_mem_file ht_streamfile ht_stream List of all members.

Public Member Functions

void init (const char *nodename, UINT am, UINT om)
virtual void done ()
virtual bool set_access_mode (UINT access_mode)

Protected Member Functions

int load_node (ht_object_stream *s, ht_registry_node_type *type, ht_registry_data **data)
void store_node (ht_object_stream *s, ht_registry_node_type type, ht_registry_data *data)

Protected Attributes

char * nodename
UINT access_mode0
UINT open_mode

Member Function Documentation

void RegNodeFile::done  )  [virtual]
 

Reimplemented from ht_mem_file.

Definition at line 209 of file vfs.cc.

References app, ht_registry::create_node(), ht_mem_file::done(), ht_object_stream::done(), FAM_WRITE, FOM_CREATE, ht_registry_node_type, ht_object_stream_bin::init(), load_node(), msg_config_changed, mt_broadcast, nodename, open_mode, registry, ht_mem_file::seek(), ht_view::sendmsg(), ht_stream::set_error(), and ht_registry::set_node().

void RegNodeFile::init const char *  nodename,
UINT  am,
UINT  om
 

Definition at line 173 of file vfs.cc.

References access_mode0, ht_object_stream::done(), FAM_READ, FAM_WRITE, ht_registry::find_data_entry(), FOM_CREATE, ht_registry_node_type, ht_strdup(), ht_object_stream_bin::init(), ht_mem_file::init(), nodename, open_mode, registry, ht_mem_file::seek(), ht_stream::set_error(), store_node(), and UINT.

int RegNodeFile::load_node ht_object_stream s,
ht_registry_node_type type,
ht_registry_data **  data
[protected]
 

Definition at line 243 of file vfs.cc.

References ht_mem_file::bufptr(), byte, ht_layer_stream::copy_to(), ht_mem_file::done(), ht_layer_stream::get_error(), ht_mem_file::get_size(), ht_object_stream::getIntDec(), ht_object_stream::getObject(), ht_registry_node_type, ht_mem_file::init(), NULL, ht_layer_stream::read(), REGNODE_FILE_MAGIC, RNT_RAW, and ht_mem_file::write().

Referenced by done().

bool RegNodeFile::set_access_mode UINT  access_mode  )  [virtual]
 

Reimplemented from ht_mem_file.

Definition at line 278 of file vfs.cc.

References access_mode0, and UINT.

void RegNodeFile::store_node ht_object_stream s,
ht_registry_node_type  type,
ht_registry_data data
[protected]
 

Definition at line 266 of file vfs.cc.

References ht_registry_node_type, NULL, ht_object_stream::putIntDec(), ht_object_stream::putObject(), REGNODE_FILE_MAGIC, RNT_RAW, ht_registry_data_raw::size, ht_registry_data_raw::value, and ht_layer_stream::write().

Referenced by init().


Member Data Documentation

UINT RegNodeFile::access_mode0 [protected]
 

Definition at line 39 of file vfs.h.

Referenced by init(), and set_access_mode().

char* RegNodeFile::nodename [protected]
 

Definition at line 38 of file vfs.h.

Referenced by done(), and init().

UINT RegNodeFile::open_mode [protected]
 

Definition at line 40 of file vfs.h.

Referenced by done(), and init().


The documentation for this class was generated from the following files:
Generated on Fri May 7 21:16:10 2004 by doxygen 1.3.5