summaryrefslogtreecommitdiff
path: root/tools/bootstrp
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2006-08-01 08:20:02 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2006-08-01 08:20:02 +0000
commitc6aa909d547d9f560b80f6f7ceda00fe6659fdc1 (patch)
tree83a335fb68711673d8c3a42ffbafae150a6b6563 /tools/bootstrp
parentfaa4280d0a138f79d45df0a56ac31dd0fcd790e9 (diff)
INTEGRATION: CWS bserver14 (1.3.66); FILE MERGED
2006/07/31 13:49:44 kz 1.3.66.2: RESYNC: (1.3-1.4); FILE MERGED 2006/06/26 13:08:22 kz 1.3.66.1: #131066# get buidlist from master
Diffstat (limited to 'tools/bootstrp')
-rw-r--r--tools/bootstrp/sstring.cxx38
1 files changed, 36 insertions, 2 deletions
diff --git a/tools/bootstrp/sstring.cxx b/tools/bootstrp/sstring.cxx
index ea13eccacd39..fc1251a41dce 100644
--- a/tools/bootstrp/sstring.cxx
+++ b/tools/bootstrp/sstring.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: sstring.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: hr $ $Date: 2006-06-19 13:22:12 $
+ * last change: $Author: ihi $ $Date: 2006-08-01 09:20:02 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -37,6 +37,8 @@
# define _TOOLS_STRINGLIST
#endif
+#define ENABLE_BYTESTRING_STREAM_OPERATORS
+#include "stream.hxx"
#include "bootstrp/sstring.hxx"
SByteStringList::SByteStringList()
@@ -159,7 +161,39 @@ ByteString* SByteStringList::RemoveString( const ByteString& rName )
return NULL;
}
+void SByteStringList::CleanUp()
+{
+ ByteString* pByteString = First();
+ while (pByteString) {
+ delete pByteString;
+ pByteString = Next();
+ }
+ Clear();
+}
+
+SByteStringList& SByteStringList::operator<< ( SvStream& rStream )
+{
+ ULONG nCount;
+ rStream >> nCount;
+ for ( USHORT i = 0; i < nCount; i++ ) {
+ ByteString* pByteString = new ByteString();
+ rStream >> *pByteString;
+ Insert (pByteString, LIST_APPEND);
+ }
+ return *this;
+}
+SByteStringList& SByteStringList::operator>> ( SvStream& rStream )
+{
+ ULONG nCount = Count();
+ rStream << nCount;
+ ByteString* pByteString = First();
+ while (pByteString) {
+ rStream << *pByteString;
+ pByteString = Next();
+ }
+ return *this;
+}