Newer
Older
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
*
* Created on: Oct 18, 2016
* Author: wfg
*/
#ifndef ADIOS2_TRANSPORT_FILE_FSTREAM_H_
#define ADIOS2_TRANSPORT_FILE_FSTREAM_H_
/// \cond EXCLUDE_FROM_DOXYGEN
#include "adios2/ADIOSConfig.h"
#include "adios2/core/Transport.h"
namespace transport
{
* File stream transport using C++ fstream
class FStream : public Transport
FStream(MPI_Comm mpiComm, const bool debugMode);
virtual ~FStream() = default;
void Open(const std::string &name, const std::string accessMode);
void SetBuffer(char *buffer, std::size_t size);
void Write(const char *buffer, std::size_t size);
std::fstream m_FStream; ///< file stream under name.bp.dir/name.bp.rank
#endif /* ADIOS2_TRANSPORT_FILE_FSTREAM_H_ */