WvStreams
wvstringtable.h
00001 /* -*- Mode: C++ -*-
00002  * Worldvisions Weaver Software:
00003  *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
00004  *
00005  * WvStrings are used a lot more often than WvStringTables, so the Table need
00006  * not be defined most of the time.  Include this file if you need it.
00007  *
00008  */
00009 #ifndef __WVSTRINGTABLE_H
00010 #define __WVSTRINGTABLE_H
00011 
00012 #include "wvstring.h"
00013 #include "wvscatterhash.h"
00014 
00015 DeclareWvScatterTable2(WvStringTableBase, WvString);
00016 
00017 class WvStringTable : public WvStringTableBase
00018 {
00019     // copy constructor: not defined anywhere!
00020     WvStringTable(const WvStringTable &t);
00021 public:
00022     WvStringTable(unsigned _numslots = 0) : WvStringTableBase(_numslots) {};
00023     WvString join(const char *joinchars = " \t") const;
00024     void split(WvStringParm s, const char *splitchars = " \t\r\n",
00025                int limit = 0);
00026     void splitstrict(WvStringParm s, const char *splitchars = " \t\r\n",
00027                int limit = 0);
00028 };
00029 
00030 #endif // __WVSTRINGTABLE_H