Scippy

SoPlex

Sequential object-oriented simPlex

spxfileio.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the class library */
4 /* SoPlex --- the Sequential object-oriented simPlex. */
5 /* */
6 /* Copyright (c) 1996-2023 Zuse Institute Berlin (ZIB) */
7 /* */
8 /* Licensed under the Apache License, Version 2.0 (the "License"); */
9 /* you may not use this file except in compliance with the License. */
10 /* You may obtain a copy of the License at */
11 /* */
12 /* http://www.apache.org/licenses/LICENSE-2.0 */
13 /* */
14 /* Unless required by applicable law or agreed to in writing, software */
15 /* distributed under the License is distributed on an "AS IS" BASIS, */
16 /* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
17 /* See the License for the specific language governing permissions and */
18 /* limitations under the License. */
19 /* */
20 /* You should have received a copy of the Apache-2.0 license */
21 /* along with SoPlex; see the file LICENSE. If not email to soplex@zib.de. */
22 /* */
23 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
24 
25 /**@file spxfileio.h
26  * @brief declaration of types for file output
27  *
28  * This is to make the use of compressed input files transparent
29  * when programming.
30  *
31  * @todo maybe rename this file (it is unrelated to spxfileio.cpp)
32  */
33 #ifndef _SPXFILEIO_H_
34 #define _SPXFILEIO_H_
35 
36 #include <iostream>
37 #include <fstream>
38 
39 /*-----------------------------------------------------------------------------
40  * compressed file support
41  *-----------------------------------------------------------------------------
42  */
43 #ifdef SOPLEX_WITH_ZLIB
44 #include "soplex/gzstream.h"
45 #endif // WITH_GSZSTREAM
46 
47 namespace soplex
48 {
49 #ifdef SOPLEX_WITH_ZLIB
50 typedef gzstream::igzstream spxifstream;
51 #else
52 typedef std::ifstream spxifstream;
53 #endif // SOPLEX_WITH_ZLIB
54 
55 } // namespace soplex
56 
57 #endif // _SPXFILEIO_H_
Everything should be within this namespace.
std::ifstream spxifstream
Definition: spxfileio.h:52