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

RegistryFs Class Reference

#include <vfs.h>

Inheritance diagram for RegistryFs:

Vfs Object List of all members.

Public Member Functions

void init ()
virtual void done ()
virtual int canonicalize (char *result, const char *filename, const char *cwd)
virtual int createFile (const char *filename, UINT createtype)
virtual int deleteFile (const char *filename)
virtual void * enumFiletype (UINT *type, char **name, void *handle)
virtual int compareFilenames (const char *a, const char *b)
virtual bool findFirst (const char *dirname, pfind_t *f)
virtual bool findNext (pfind_t *f)
virtual bool findClose (pfind_t *f)
virtual int getCaps ()
virtual const char * getProtoName ()
virtual is_path_delim isPathDelim ()
virtual int makeDir (const char *dirname)
virtual int open (const char *filename, bool edit)
virtual int pstat (pstat_t *s, const char *filename)
virtual int renameFile (const char *filename, const char *newname)
virtual int fileClose (ht_streamfile *f)
virtual int fileOpen (const char *filename, UINT access_mode, UINT open_mode, ht_streamfile **f)

Protected Member Functions

void create_pfind_t (pfind_t *f, const char *key, ht_registry_data *data, ht_registry_node_type type)
void create_pstat_t (pstat_t *s, ht_registry_data *data, ht_registry_node_type type)

Protected Attributes

char * enum_last
char * enum_dir

Member Function Documentation

int RegistryFs::canonicalize char *  result,
const char *  filename,
const char *  cwd
[virtual]
 

Implements Vfs.

Definition at line 300 of file vfs.cc.

References ht_registry::find_data_entry(), ht_registry_node_type, registry, and sys_common_canonicalize().

int RegistryFs::compareFilenames const char *  a,
const char *  b
[virtual]
 

Implements Vfs.

Definition at line 371 of file vfs.cc.

void RegistryFs::create_pfind_t pfind_t f,
const char *  key,
ht_registry_data data,
ht_registry_node_type  type
[protected]
 

Definition at line 309 of file vfs.cc.

References pstat_t::caps, create_pstat_t(), pstat_t::desc, ht_registry_node_type, pfind_t::name, pstat_desc, pstat_mode_type, pfind_t::stat, and ht_registry_data::strvalue().

Referenced by findFirst(), and findNext().

void RegistryFs::create_pstat_t pstat_t s,
ht_registry_data data,
ht_registry_node_type  type
[protected]
 

Definition at line 317 of file vfs.cc.

References pstat_t::caps, ht_registry_node_type, HT_S_IFDIR, HT_S_IFLNK, HT_S_IFREG, pstat_t::mode, pstat_desc, pstat_mode_type, pstat_size, RNT_RAW, RNT_SUBDIR, RNT_SYMLINK, and pstat_t::size.

Referenced by create_pfind_t(), and pstat().

int RegistryFs::createFile const char *  filename,
UINT  createtype
[virtual]
 

Implements Vfs.

Definition at line 336 of file vfs.cc.

References app, ht_registry::create_node(), msg_config_changed, mt_broadcast, registry, ht_view::sendmsg(), and UINT.

int RegistryFs::deleteFile const char *  filename  )  [virtual]
 

Implements Vfs.

Definition at line 346 of file vfs.cc.

References app, ht_registry::delete_node(), msg_config_changed, mt_broadcast, registry, and ht_view::sendmsg().

void RegistryFs::done  )  [virtual]
 

Reimplemented from Object.

Definition at line 295 of file vfs.cc.

References Object::done().

void * RegistryFs::enumFiletype UINT type,
char **  name,
void *  handle
[virtual]
 

Implements Vfs.

Definition at line 356 of file vfs.cc.

References ht_stree::enum_next(), ht_registry::node_types, NULL, registry, RNT_SUBDIR, UINT, ht_data_string::value, and value.

int RegistryFs::fileClose ht_streamfile f  )  [virtual]
 

Implements Vfs.

Definition at line 483 of file vfs.cc.

References ht_stream::done(), and ht_stream::get_error().

int RegistryFs::fileOpen const char *  filename,
UINT  access_mode,
UINT  open_mode,
ht_streamfile **  f
[virtual]
 

Implements Vfs.

Definition at line 491 of file vfs.cc.

References file, and UINT.

bool RegistryFs::findClose pfind_t f  )  [virtual]
 

Implements Vfs.

Definition at line 420 of file vfs.cc.

bool RegistryFs::findFirst const char *  dirname,
pfind_t f
[virtual]
 

Implements Vfs.

Definition at line 378 of file vfs.cc.

References pstat_t::caps, create_pfind_t(), enum_dir, enum_last, ht_registry::enum_next(), ht_registry_node_type, HT_S_IFDIR, pstat_t::mode, pfind_t::name, NULL, pstat_mode_type, registry, and pfind_t::stat.

bool RegistryFs::findNext pfind_t f  )  [virtual]
 

Implements Vfs.

Definition at line 405 of file vfs.cc.

References create_pfind_t(), enum_dir, enum_last, ht_registry::enum_next(), ht_registry_node_type, and registry.

int RegistryFs::getCaps  )  [virtual]
 

Implements Vfs.

Definition at line 425 of file vfs.cc.

References VFSCAP_WRITABLE.

const char * RegistryFs::getProtoName  )  [virtual]
 

Implements Vfs.

Definition at line 430 of file vfs.cc.

void RegistryFs::init  ) 
 

Reimplemented from Object.

Definition at line 288 of file vfs.cc.

References enum_dir, enum_last, Object::init(), and NULL.

Referenced by build_vfs_list().

is_path_delim RegistryFs::isPathDelim  )  [virtual]
 

Implements Vfs.

Definition at line 435 of file vfs.cc.

References is_path_delim.

int RegistryFs::makeDir const char *  dirname  )  [virtual]
 

Implements Vfs.

Definition at line 440 of file vfs.cc.

References ht_registry::create_subdir(), and registry.

int RegistryFs::open const char *  filename,
bool  edit
[virtual]
 

Implements Vfs.

Definition at line 445 of file vfs.cc.

References app, ht_registry_data::editdialog(), ht_registry::find_data_entry(), ht_registry_node_type, msg_config_changed, mt_broadcast, registry, and ht_view::sendmsg().

int RegistryFs::pstat pstat_t s,
const char *  filename
[virtual]
 

Implements Vfs.

Definition at line 462 of file vfs.cc.

References create_pstat_t(), ht_registry::find_any_entry(), ht_registry_node_type, ht_snprintf(), registry, and VFS_DIR_MAX.

int RegistryFs::renameFile const char *  filename,
const char *  newname
[virtual]
 

Implements Vfs.

Definition at line 478 of file vfs.cc.


Member Data Documentation

char* RegistryFs::enum_dir [protected]
 

Definition at line 115 of file vfs.h.

Referenced by findFirst(), findNext(), and init().

char* RegistryFs::enum_last [protected]
 

Definition at line 114 of file vfs.h.

Referenced by findFirst(), findNext(), 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