Kinetic C/C++ Client
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Pages
include
kinetic
reader_writer.h
1
/*
2
* kinetic-cpp-client
3
* Copyright (C) 2014 Seagate Technology.
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
*
19
*/
20
21
#ifndef KINETIC_CPP_CLIENT_READER_WRITER_H_
22
#define KINETIC_CPP_CLIENT_READER_WRITER_H_
23
24
#include <stddef.h>
25
26
#include "common.h"
27
28
namespace
kinetic
{
29
30
class
ReaderWriter
{
31
public
:
32
explicit
ReaderWriter
(
int
fd);
33
bool
Read(
void
*buf,
size_t
n,
int
* err);
34
bool
Write(
const
void
*buf,
size_t
n);
35
36
private
:
37
int
fd_;
38
DISALLOW_COPY_AND_ASSIGN(
ReaderWriter
);
39
};
40
41
}
// namespace kinetic
42
43
#endif // KINETIC_CPP_CLIENT_READER_WRITER_H_
kinetic::ReaderWriter
Definition:
reader_writer.h:30
kinetic
Definition:
blocking_smoketest.cc:26
Generated on Mon Mar 30 2015 08:24:47 for Kinetic C/C++ Client by
1.8.8