Testing more complex struct and enum declarations; fixing subtle bugs
[iot2.git] / iotjava / iotrmi / C++ / basics / CallBack.hpp
1 #ifndef _CALLBACK_HPP__
2 #define _CALLBACK_HPP__
3
4 #include <iostream>
5 #include "CallBackInterface.hpp"
6
7 using namespace std;
8
9 class CallBack : public CallBackInterface {
10         public:
11                 CallBack(int _i);
12
13                 int             printInt();
14                 void    setInt(int _i);
15
16         private:                
17                 int             intA;
18 };
19
20
21 // Constructor
22 CallBack::CallBack(int _i) {
23
24         intA = _i;
25 }
26
27
28 int CallBack::printInt() {
29
30         cout << "Integer: " << intA << endl;
31         return intA;
32 }
33
34
35 void CallBack::setInt(int _i) {
36
37         intA = _i;
38 }
39
40 #endif
41