-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbdb_object.h
More file actions
45 lines (34 loc) · 772 Bytes
/
bdb_object.h
File metadata and controls
45 lines (34 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright 2011 Mark Cavage <mcavage@gmail.com> All rights reserved.
#ifndef BDB_OBJECT_H_
#define BDB_OBJECT_H_
#include <node.h>
#include <v8.h>
class Db;
class DbEnv;
class DbObject: public node::ObjectWrap {
public:
DbObject();
virtual ~DbObject();
protected:
static int EIO_After_ReturnStatus(eio_req *req);
private:
DbObject(DbObject &);
DbObject &operator=(DbObject &);
friend class Db;
friend class DbEnv;
};
class EIOBaton {
public:
explicit EIOBaton(DbObject *obj);
virtual ~EIOBaton();
// make these public to save on typing
DbObject *object;
int flags;
int status;
v8::Persistent<v8::Function> cb;
private:
EIOBaton();
EIOBaton(const EIOBaton &);
EIOBaton &operator=(EIOBaton &);
};
#endif // BDB_OBJECT_H_