Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

bdbtest2.cc File Reference

#include "wvbdbhash.h"
#include "wvhashtable.h"
#include "wvstream.h"

Go to the source code of this file.

Typedefs

typedef WvBdbHash< WvString,
WvString > 
StrStrMap

Functions

 DeclareWvDict (KeyVal, WvString, key)
KeyValDict keyvals (3)
KeyValDict::Iter gi (keyvals)
bool cmptest (WvStringParm wantkey, WvStringParm wantval, WvStringParm gotkey, WvStringParm gotval)
bool itertest (StrStrMap::Iter &i, WvStringParm key, WvStringParm want)
bool itertest2 (StrStrMap &ss, WvStringParm key, WvStringParm want)
void itertest3 (WvStream &s, void *userdata)
int alpha (const KeyVal *a, const KeyVal *b)
bool runtests (StrStrMap &ss)
int main ()

Variables

bool iterdone


Typedef Documentation

typedef WvBdbHash<WvString,WvString> StrStrMap
 

Definition at line 10 of file bdbtest2.cc.

Referenced by itertest3(), and main().


Function Documentation

int alpha (  const KeyVal *  a,
const KeyVal *  b
) 
 

Definition at line 60 of file bdbtest2.cc.

Referenced by runtests().

bool cmptest (  WvStringParm  wantkey,
WvStringParm  wantval,
WvStringParm  gotkey,
WvStringParm  gotval
) 
 

Definition at line 26 of file bdbtest2.cc.

References WvStream::print(), and wvcon.

Referenced by itertest(), and runtests().

DeclareWvDict (  KeyVal  ,
WvString  ,
key 
) 
 

KeyValDict::Iter gi (  keyvals   ) 
 

Referenced by itertest3(), and runtests().

bool itertest (  StrStrMap::Iter &  i,
WvStringParm  key,
WvStringParm  want
) 
 

Definition at line 39 of file bdbtest2.cc.

References cmptest().

Referenced by itertest2(), and runtests().

bool itertest2 (  StrStrMap &  ss,
WvStringParm  key,
WvStringParm  want
) 
 

Definition at line 45 of file bdbtest2.cc.

References itertest().

Referenced by itertest3(), and runtests().

void itertest3 (  WvStream &  s,
void *  userdata
) 
 

Definition at line 51 of file bdbtest2.cc.

References WvStream::alarm(), gi(), iterdone, itertest2(), and StrStrMap.

Referenced by runtests().

KeyValDict keyvals (  3   ) 
 

Referenced by main(), and runtests().

int main (   ) 
 

Definition at line 192 of file bdbtest2.cc.

References WvBdbHash< K, D >::add(), WvFastString::cstr(), WvError::errstr(), WvError::isok(), keyvals(), WvStream::print(), runtests(), WvError::seterr(), StrStrMap, wvcon, and WvBdbHashBase::zap().

bool runtests (  StrStrMap &  ss  ) 
 

Definition at line 66 of file bdbtest2.cc.

References WvStream::alarm(), alpha(), WvStream::callback(), cmptest(), gi(), iterdone, itertest(), itertest2(), itertest3(), keyvals(), WvStream::print(), WvStream::select(), WvStream::setcallback(), and wvcon.

Referenced by main().


Variable Documentation

bool iterdone
 

Definition at line 24 of file bdbtest2.cc.

Referenced by itertest3(), and runtests().


Generated on Tue Oct 5 01:09:21 2004 for WvStreams by doxygen 1.3.7