1 #ifndef _TESTCLASS_HPP__
2 #define _TESTCLASS_HPP__
7 #include "TestClassInterface.hpp"
11 class TestClass : public TestClassInterface {
14 TestClass(int _int, float _float, string _string);
16 char getByte(char in);
17 short getShort(short in);
18 int64_t getLong(int64_t in);
19 float getFloat(float in);
20 double getDouble(double in);
21 bool getBoolean(bool in);
22 char getChar(char in);
24 vector<char> getByteArray(vector<char> in);
25 vector<short> getShortArray(vector<short> in);
26 vector<int64_t> getLongArray(vector<int64_t> in);
27 vector<float> getFloatArray(vector<float> in);
28 vector<double> getDoubleArray(vector<double> in);
29 vector<bool> getBooleanArray(vector<bool> in);
30 vector<char> getCharArray(vector<char> in);
32 vector<char> getByteList(vector<char> in);
33 vector<short> getShortList(vector<short> in);
34 vector<int64_t> getLongList(vector<int64_t> in);
35 vector<float> getFloatList(vector<float> in);
36 vector<double> getDoubleList(vector<double> in);
37 vector<bool> getBooleanList(vector<bool> in);
38 vector<char> getCharList(vector<char> in);
42 void setB(float _float);
43 void setC(string _string);
44 string sumArray(vector<string> newA);
45 int setAndGetA(int newA);
46 int setACAndGetA(string newC, int newA);
55 TestClass::TestClass() {
60 // cbvec doesn't need to be initialized again
64 TestClass::TestClass(int _int, float _float, string _string) {
69 // cbvec doesn't need to be initialized again
74 char TestClass::getByte(char in) {
80 short TestClass::getShort(short in) {
86 int64_t TestClass::getLong(int64_t in) {
92 float TestClass::getFloat(float in) {
98 double TestClass::getDouble(double in) {
104 bool TestClass::getBoolean(bool in) {
110 char TestClass::getChar(char in) {
117 vector<char> TestClass::getByteArray(vector<char> in) {
123 vector<short> TestClass::getShortArray(vector<short> in) {
129 vector<int64_t> TestClass::getLongArray(vector<int64_t> in) {
135 vector<float> TestClass::getFloatArray(vector<float> in) {
141 vector<double> TestClass::getDoubleArray(vector<double> in) {
147 vector<bool> TestClass::getBooleanArray(vector<bool> in) {
153 vector<char> TestClass::getCharArray(vector<char> in) {
159 vector<char> TestClass::getByteList(vector<char> in) {
165 vector<short> TestClass::getShortList(vector<short> in) {
171 vector<int64_t> TestClass::getLongList(vector<int64_t> in) {
177 vector<float> TestClass::getFloatList(vector<float> in) {
183 vector<double> TestClass::getDoubleList(vector<double> in) {
189 vector<bool> TestClass::getBooleanList(vector<bool> in) {
195 vector<char> TestClass::getCharList(vector<char> in) {
201 int TestClass::getA() {
207 void TestClass::setA(int _int) {
213 void TestClass::setB(float _float) {
219 void TestClass::setC(string _string) {
225 string TestClass::sumArray(vector<string> newA) {
228 int len = newA.size();
229 for(int c = 0; c < len; c++) {
236 int TestClass::setAndGetA(int newA) {
243 int TestClass::setACAndGetA(string newC, int newA) {