projects
/
iot2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Adding object ID and tons of minor adjustments for callback support
[iot2.git]
/
iotjava
/
iotrmi
/
C++
/
sample
/
CallBack.hpp
1
#include <iostream>
2
#include "CallBackInterface.hpp"
3
4
using namespace std;
5
6
class CallBack : public CallBackInterface {
7
public:
8
//CallBack();
9
CallBack(int _i);
10
//~CallBack();
11
12
int printInt();
13
void setInt(int _i);
14
15
private:
16
int intA;
17
};
18
19
20
// Constructor
21
CallBack::CallBack(int _i) {
22
23
intA = _i;
24
}
25
26
27
int CallBack::printInt() {
28
29
cout << "Integer: " << intA << endl;
30
return intA;
31
}
32
33
34
void CallBack::setInt(int _i) {
35
36
intA = _i;
37
}
38
39