Newer
Older
*
* Created on: Jan 6, 2017
* Author: wfg
*/
#ifndef FILEPOINTER_H_
#define FILEPOINTER_H_
/// \cond EXCLUDE_FROM_DOXYGEN
#include "core/Transport.h"
namespace adios
{
namespace transport
{
* Class that defines a transport method using C file pointer (FP) to streams FILE*
class FilePointer : public Transport
FilePointer( MPI_Comm mpiComm, const bool debugMode );
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 );
void Flush( );
void Close( );
private:
FILE* m_File = NULL; ///< C file pointer
};
} //end namespace transport
#endif /* FILEPOINTER_H_ */