Adding callback for C++ (still has bug for return values); adding struct as method...
[iot2.git] / iotjava / iotrmi / C++ / sample / TestClassInterface.hpp
1 #ifndef _TESTCLASSINTERFACE_HPP__
2 #define _TESTCLASSINTERFACE_HPP__
3
4 #include <iostream>
5 #include <vector>
6 #include "CallBackInterface.hpp"
7 #include "StructC.hpp"
8
9 using namespace std;
10
11 class TestClassInterface {
12         public:
13                 virtual void    setA(int _int) = 0;
14                 virtual void    setB(float _float) = 0;
15                 virtual void    setC(string _string) = 0;
16                 virtual string  sumArray(vector<string> newA) = 0;
17                 //virtual int64_t       sumArray(vector<int> newA) = 0;
18                 virtual int             setAndGetA(int newA) = 0;
19                 virtual int             setACAndGetA(string newC, int newA) = 0;
20                 virtual void    registerCallback(CallBackInterface* _cb) = 0;
21                 virtual void    registerCallback(vector<CallBackInterface*> _cb) = 0;
22                 virtual int             callBack() = 0;
23                 virtual void    handleStruct(vector<data> vecData) = 0;
24 };
25
26 #endif
27