Newer
Older
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* FileDescriptor.h uses POSIX as the underlying library
*
* Created on: Oct 6, 2016
* Author: wfg
*/
#ifndef ADIOS2_TRANSPORT_FILE_FILEDESCRIPTOR_H_
#define ADIOS2_TRANSPORT_FILE_FILEDESCRIPTOR_H_
#include "adios2/ADIOSConfig.h"
#include "adios2/core/Transport.h"
namespace transport
{
/**
* File descriptor transport using the POSIX library
*/
class FileDescriptor : public Transport
FileDescriptor(MPI_Comm mpiComm, const bool debugMode);
void Open(const std::string &name, const std::string accessMode);
void Write(const char *buffer, std::size_t size);
int m_FileDescriptor = -1; ///< file descriptor returned by POSIX open
} // end namespace transport
} // end namespace
#endif /* ADIOS2_TRANSPORT_FILE_FILEDESCRIPTOR_H_ */