ProteoWizard
Stream.hpp
Go to the documentation of this file.
1//
2// $Id$
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
34namespace bio = boost::iostreams;
35namespace bnw = boost::nowide;
36
37using std::ios;
38using std::iostream;
39using std::istream;
40using std::ostream;
41
42using std::istream_iterator;
43using std::ostream_iterator;
44
45using bnw::fstream;
46using bnw::ifstream;
47using bnw::ofstream;
48
49using std::stringstream;
50using std::istringstream;
51using std::ostringstream;
52
53using std::getline;
54
55using std::streampos;
56using std::streamoff;
57using std::streamsize;
58
59using bnw::cin;
60using bnw::cout;
61using bnw::cerr;
62using std::endl;
63using std::flush;
64
65using std::wcin;
66using std::wcout;
67using std::wcerr;
68
69using std::setprecision;
70using std::setw;
71using std::setfill;
72using std::setbase;
73
74using std::showbase;
75using std::showpoint;
76using std::showpos;
77using std::boolalpha;
78using std::noshowbase;
79using std::noshowpoint;
80using std::noshowpos;
81using std::noboolalpha;
82using std::fixed;
83using std::scientific;
84using std::dec;
85using std::oct;
86using std::hex;
87
89using boost::bad_lexical_cast;
toType lexical_cast(const std::string &str, bool &success)