class TiKanDB : public AudDB

xmcd-style audio database.

Inheritance:

TiKanDB < AudDB


Public Methods

void open(void)
TiKanDB(void)
TiKanDB(char *fpath)
~TiKanDB(void)

Protected Fields

int npaths
char** pathlst
char** pathpos

Protected Methods

bool read_i(Catalog& ct, int idx)
bool readEntry(ifstream& instr, Catalog& ct)
void write(Catalog& ct, int& oldlen)
bool writeEntry(ofstream& outstr, Catalog& ct)

Inherited from AudDB:

Public Methods

void add(Catalog &ct)
virtual bool read(Catalog& ct)
void setName(char *name)

Protected Fields

char* db_name
int len_magic
unsigned long* magiclist

Protected Methods

int find(Catalog& ct)

Documentation

TiKanDB is a AudDB implemented to work with xmcd-style databases.

TiKanDB(void)
Class Constructor

TiKanDB(char *fpath)
Overloaded Constructor. Sets db_name to a duplicate of the argument fpath, which should be a ':' -separated list of search paths. You can only specify NPATH_MAX paths.

~TiKanDB(void)
Class Destructor.

void open(void)
[virtual]

Reimplements the AudDB version. Recursivesly scans the ':'-separated list of paths specified in db_name. Symbolic links should point to directories only, not files. Because xmcd-style databases reside in individual files under a directory tree, open() stores the full filename of each database entry.

char** pathpos
An array containing the full filename of each database entry. Has the same length as magiclist.

char** pathlst
The list of paths specified in db_name, divided into an array.

int npaths
The number of paths specified in db_name and subsequently stored in pathlst.

void write(Catalog& ct, int& oldlen)
[virtual]

Reimplements the AudDB version. If ct is already in the database, it increments oldlen.

bool read_i(Catalog& ct, int idx)
[virtual]

Reimplements the AudDB version. Opens an input stream for the file at pathpos[idx], then calls readEntry.

bool readEntry(ifstream& instr, Catalog& ct)
[virtual]

Reimplements the AudDB version.

bool writeEntry(ofstream& outstr, Catalog& ct)
[virtual]

Reimplements the AudDB version.


This class has no child classes.

alphabetic index hierarchy of classes


Copyright 1997 by John Weiss [John.Weiss@colorado.edu] "generated by doc++"?! More like mangled ...

generated by doc++