159617ebcSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
359617ebcSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
459617ebcSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
559617ebcSAndrew Rist  * distributed with this work for additional information
659617ebcSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
759617ebcSAndrew Rist  * to you under the Apache License, Version 2.0 (the
859617ebcSAndrew Rist  * "License"); you may not use this file except in compliance
959617ebcSAndrew Rist  * with the License.  You may obtain a copy of the License at
1059617ebcSAndrew Rist  *
1159617ebcSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
1259617ebcSAndrew Rist  *
1359617ebcSAndrew Rist  * Unless required by applicable law or agreed to in writing,
1459617ebcSAndrew Rist  * software distributed under the License is distributed on an
1559617ebcSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1659617ebcSAndrew Rist  * KIND, either express or implied.  See the License for the
1759617ebcSAndrew Rist  * specific language governing permissions and limitations
1859617ebcSAndrew Rist  * under the License.
1959617ebcSAndrew Rist  *
2059617ebcSAndrew Rist  *************************************************************/
2159617ebcSAndrew Rist 
2259617ebcSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #include <precomp.h>
25cdf0e10cSrcweir #include <cosv/csv_ostream.hxx>
26cdf0e10cSrcweir 
27cdf0e10cSrcweir // NOT FULLY DECLARED SERVICES
28cdf0e10cSrcweir 
29cdf0e10cSrcweir 
30cdf0e10cSrcweir #ifndef CSV_NO_IOSTREAMS
31cdf0e10cSrcweir #else
32cdf0e10cSrcweir 
33cdf0e10cSrcweir #include <cosv/streamstr.hxx>
34cdf0e10cSrcweir 
35cdf0e10cSrcweir namespace csv
36cdf0e10cSrcweir {
37cdf0e10cSrcweir 
~ostream()38cdf0e10cSrcweir ostream::~ostream() { }
39cdf0e10cSrcweir 
operator <<(const char * i_s)40cdf0e10cSrcweir ostream & ostream::operator<<(
41cdf0e10cSrcweir                             const char *        i_s )   { *pData << i_s; return *this; }
operator <<(char i_c)42cdf0e10cSrcweir ostream & ostream::operator<<(
43cdf0e10cSrcweir                             char                i_c )   { *pData << i_c; return *this; }
operator <<(unsigned char i_c)44cdf0e10cSrcweir ostream & ostream::operator<<(
45cdf0e10cSrcweir                             unsigned char       i_c )   { *pData << i_c; return *this; }
operator <<(signed char i_c)46cdf0e10cSrcweir ostream & ostream::operator<<(
47cdf0e10cSrcweir                             signed char         i_c )   { *pData << i_c; return *this; }
48cdf0e10cSrcweir 
operator <<(short i_n)49cdf0e10cSrcweir ostream & ostream::operator<<(
50cdf0e10cSrcweir                             short               i_n )   { *pData << i_n; return *this; }
operator <<(unsigned short i_n)51cdf0e10cSrcweir ostream & ostream::operator<<(
52cdf0e10cSrcweir                             unsigned short      i_n )   { *pData << i_n; return *this; }
operator <<(int i_n)53cdf0e10cSrcweir ostream & ostream::operator<<(
54cdf0e10cSrcweir                             int                 i_n )   { *pData << i_n; return *this; }
operator <<(unsigned int i_n)55cdf0e10cSrcweir ostream & ostream::operator<<(
56cdf0e10cSrcweir                             unsigned int        i_n )   { *pData << i_n; return *this; }
operator <<(long i_n)57cdf0e10cSrcweir ostream & ostream::operator<<(
58cdf0e10cSrcweir                             long                i_n )   { *pData << i_n; return *this; }
operator <<(unsigned long i_n)59cdf0e10cSrcweir ostream & ostream::operator<<(
60cdf0e10cSrcweir                             unsigned long       i_n )   { *pData << i_n; return *this; }
61cdf0e10cSrcweir 
operator <<(float i_n)62cdf0e10cSrcweir ostream & ostream::operator<<(
63cdf0e10cSrcweir                             float               i_n )   { *pData << i_n; return *this; }
operator <<(double i_n)64cdf0e10cSrcweir ostream & ostream::operator<<(
65cdf0e10cSrcweir                             double              i_n )   { *pData << i_n; return *this; }
66cdf0e10cSrcweir 
67cdf0e10cSrcweir ostream &
seekp(intt i_nOffset,seek_dir i_eStart)68cdf0e10cSrcweir ostream::seekp( intt                i_nOffset,
69cdf0e10cSrcweir                 seek_dir            i_eStart )
70cdf0e10cSrcweir {
71cdf0e10cSrcweir     pData->seekp(i_nOffset, csv::seek_dir(int(i_eStart)) );
72cdf0e10cSrcweir     return *this;
73cdf0e10cSrcweir }
74cdf0e10cSrcweir 
ostream(uintt i_nStartSize)75cdf0e10cSrcweir ostream::ostream( uintt i_nStartSize )
76cdf0e10cSrcweir     :   pData( new StreamStr(i_nStartSize) )
77cdf0e10cSrcweir {
78cdf0e10cSrcweir }
79cdf0e10cSrcweir 
80cdf0e10cSrcweir 
81cdf0e10cSrcweir 
82cdf0e10cSrcweir }   // namespace csv
83cdf0e10cSrcweir 
84cdf0e10cSrcweir #endif
85cdf0e10cSrcweir 
86cdf0e10cSrcweir 
87cdf0e10cSrcweir 
88cdf0e10cSrcweir 
89