Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

wvstringlist.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 WvStringLists, so the List need
00006  * not be defined most of the time.  Include this file if you need it.
00007  *
00008  */
00009 #ifndef __WVSTRINGLIST_H
00010 #define __WVSTRINGLIST_H
00011 
00012 #include "wvstring.h"
00013 #include "wvlinklist.h"
00014 
00015 DeclareWvList2(WvStringListBase, WvString);
00016 
00025 class WvStringList : public WvStringListBase
00026 {
00027     // copy constructor: not defined anywhere!
00028     WvStringList(const WvStringList &l);
00029 public:
00033     WvStringList() {}
00034     
00038     WvString join(const char *joinchars = " ") const;
00039     
00049     void split(WvStringParm s, const char *splitchars = " \t\r\n",
00050                int limit = 0);
00064     void splitstrict(WvStringParm s, const char *splitchars = " \t\r\n",
00065                int limit = 0);
00066     
00067     /*
00068      * populate the list from an array of strings
00069      */
00070     void fill(const char * const *array);
00071 
00072     void append(WvStringParm str);
00073     void append(WvString *strp, bool autofree, char *id = NULL);
00074 
00079     WvString popstr();
00080 };
00081 
00082 #endif // __WVSTRINGLIST_H

Generated on Sun Jul 10 17:30:57 2005 for WvStreams by  doxygen 1.4.0