1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: csv_ostream.cxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
32 #include <cosv/csv_ostream.hxx>
34 // NOT FULLY DECLARED SERVICES
37 #ifndef CSV_NO_IOSTREAMS
40 #include <cosv/streamstr.hxx>
45 ostream::~ostream() { }
47 ostream
& ostream::operator<<(
48 const char * i_s
) { *pData
<< i_s
; return *this; }
49 ostream
& ostream::operator<<(
50 char i_c
) { *pData
<< i_c
; return *this; }
51 ostream
& ostream::operator<<(
52 unsigned char i_c
) { *pData
<< i_c
; return *this; }
53 ostream
& ostream::operator<<(
54 signed char i_c
) { *pData
<< i_c
; return *this; }
56 ostream
& ostream::operator<<(
57 short i_n
) { *pData
<< i_n
; return *this; }
58 ostream
& ostream::operator<<(
59 unsigned short i_n
) { *pData
<< i_n
; return *this; }
60 ostream
& ostream::operator<<(
61 int i_n
) { *pData
<< i_n
; return *this; }
62 ostream
& ostream::operator<<(
63 unsigned int i_n
) { *pData
<< i_n
; return *this; }
64 ostream
& ostream::operator<<(
65 long i_n
) { *pData
<< i_n
; return *this; }
66 ostream
& ostream::operator<<(
67 unsigned long i_n
) { *pData
<< i_n
; return *this; }
69 ostream
& ostream::operator<<(
70 float i_n
) { *pData
<< i_n
; return *this; }
71 ostream
& ostream::operator<<(
72 double i_n
) { *pData
<< i_n
; return *this; }
75 ostream::seekp( intt i_nOffset
,
78 pData
->seekp(i_nOffset
, csv::seek_dir(int(i_eStart
)) );
82 ostream::ostream( uintt i_nStartSize
)
83 : pData( new StreamStr(i_nStartSize
) )