ProteoWizard
Stream.hpp
Go to the documentation of this file.
1 //
2 // $Id: Stream.hpp 6141 2014-05-05 21:03:47Z chambm $
3 //
4 //
5 // Original author: Matt Chambers <matt.chambers .@. vanderbilt.edu>
6 //
7 // Copyright 2008 Spielberg Family Center for Applied Proteomics
8 // Cedars Sinai Medical Center, Los Angeles, California 90048
9 // Copyright 2008 Vanderbilt University - Nashville, TN 37232
10 //
11 // Licensed under the Apache License, Version 2.0 (the "License");
12 // you may not use this file except in compliance with the License.
13 // You may obtain a copy of the License at
14 //
15 // http://www.apache.org/licenses/LICENSE-2.0
16 //
17 // Unless required by applicable law or agreed to in writing, software
18 // distributed under the License is distributed on an "AS IS" BASIS,
19 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 // See the License for the specific language governing permissions and
21 // limitations under the License.
22 //
23 
24 #include <iostream>
25 #include <fstream>
26 #include <sstream>
27 #include <iomanip>
28 #include <boost/iostreams/operations.hpp>
30 #include <boost/nowide/fstream.hpp>
31 #include <boost/nowide/iostream.hpp>
32 #include <boost/nowide/args.hpp>
33 
34 namespace bio = boost::iostreams;
35 namespace bnw = boost::nowide;
36 
37 using std::ios;
38 using std::iostream;
39 using std::istream;
40 using std::ostream;
41 
42 using std::istream_iterator;
43 using std::ostream_iterator;
44 
45 using bnw::fstream;
46 using bnw::ifstream;
47 using bnw::ofstream;
48 
49 using std::stringstream;
50 using std::istringstream;
51 using std::ostringstream;
52 
53 using std::getline;
54 
55 using std::streampos;
56 using std::streamoff;
57 using std::streamsize;
58 
59 using bnw::cin;
60 using bnw::cout;
61 using bnw::cerr;
62 using std::endl;
63 using std::flush;
64 
65 using std::wcin;
66 using std::wcout;
67 using std::wcerr;
68 
69 using std::setprecision;
70 using std::setw;
71 using std::setfill;
72 using std::setbase;
73 
74 using std::showbase;
75 using std::showpoint;
76 using std::showpos;
77 using std::boolalpha;
78 using std::noshowbase;
79 using std::noshowpoint;
80 using std::noshowpos;
81 using std::noboolalpha;
82 using std::fixed;
83 using std::scientific;
84 using std::dec;
85 using std::oct;
86 using std::hex;
87 
89 using boost::bad_lexical_cast;
float lexical_cast(const std::string &str)