38 |
|
#include <sstream> |
39 |
|
|
40 |
|
#ifdef IS_MPI |
41 |
< |
#include <mpi.hpp> |
41 |
> |
#include <mpi.h> |
42 |
|
#endif |
43 |
|
|
44 |
|
namespace oopse { |
118 |
|
} |
119 |
|
|
120 |
|
/** |
121 |
< |
* |
121 |
> |
* virtual destructor will close the file(in single mode) and clear the stream buffer |
122 |
|
*/ |
123 |
|
~basic_ifstrstream(){ |
124 |
|
close(); |
175 |
|
* parallel mode) associated with the stream. |
176 |
|
*/ |
177 |
|
_Buf* rdbuf() const{ |
178 |
< |
return const_cast<_Buf*>(internalBuf_); |
178 |
> |
return static_cast<_Buf*>(internalBuf_); |
179 |
|
} |
180 |
|
|
181 |
|
private: |
338 |
|
bool isRead; /** file opened flag */ |
339 |
|
}; |
340 |
|
|
341 |
< |
typedef basic_istringstream<char, char_traits<char>, allocator<char> > ifstringstream; |
341 |
> |
typedef basic_ifstrstream<char, char_traits<char>, allocator<char> > ifstrstream; |
342 |
|
}//namespace oopse |
343 |
|
#endif //IO_IFSTRSTREAM_HPP |