Skip to content
Snippets Groups Projects
FileDescriptor.h 760 B
Newer Older
wfg's avatar
wfg committed
/*
 * FileDescriptor.h uses POSIX as the underlying library
wfg's avatar
wfg committed
 *
 *  Created on: Oct 6, 2016
 *      Author: wfg
 */

#ifndef FILEDESCRIPTOR_H_
#define FILEDESCRIPTOR_H_
#include "core/Transport.h"
wfg's avatar
wfg committed


namespace adios
{
/**
 * File descriptor transport using the POSIX library
 */
class FileDescriptor : public Transport
    FileDescriptor( MPI_Comm mpiComm, const bool debugMode );
wfg's avatar
wfg committed
    void Open( const std::string name, const std::string accessMode );
wfg's avatar
wfg committed
    void Write( const char* buffer, std::size_t size );
wfg's avatar
wfg committed
    void Close( );
wfg's avatar
wfg committed
private:
    int m_FileDescriptor = -1; ///< file descriptor returned by POSIX open

wfg's avatar
wfg committed
};
} //end namespace transport
} //end namespace
#endif /* FILEDESCRIPTOR_H_ */