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 00017 class WvStringList : public WvStringListBase 00018 { 00019 // copy constructor: not defined anywhere! 00020 WvStringList(const WvStringList &l); 00021 public: 00022 WvStringList() {} 00023 00024 WvString join(const char *joinchars = " ") const; 00025 void split(WvStringParm s, const char *splitchars = " \t\r\n", 00026 int limit = 0); 00027 void splitstrict(WvStringParm s, const char *splitchars = " \t\r\n", 00028 int limit = 0); 00029 void fill(const char * const *array); 00030 WvString popstr(); 00031 }; 00032 00033 #endif // __WVSTRINGLIST_H