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);
34 void setB(float _float);
35 void setC(string _string);
36 string sumArray(vector<string> newA);
37 int setAndGetA(int newA);
38 int setACAndGetA(string newC, int newA);
47 TestClass::TestClass() {
52 // cbvec doesn't need to be initialized again
56 TestClass::TestClass(int _int, float _float, string _string) {
61 // cbvec doesn't need to be initialized again
66 char TestClass::getByte(char in) {
72 short TestClass::getShort(short in) {
78 int64_t TestClass::getLong(int64_t in) {
84 float TestClass::getFloat(float in) {
90 double TestClass::getDouble(double in) {
96 bool TestClass::getBoolean(bool in) {
102 char TestClass::getChar(char in) {
109 vector<char> TestClass::getByteArray(vector<char> in) {
115 vector<short> TestClass::getShortArray(vector<short> in) {
121 vector<int64_t> TestClass::getLongArray(vector<int64_t> in) {
127 vector<float> TestClass::getFloatArray(vector<float> in) {
133 vector<double> TestClass::getDoubleArray(vector<double> in) {
139 vector<bool> TestClass::getBooleanArray(vector<bool> in) {
145 vector<char> TestClass::getCharArray(vector<char> in) {
151 int TestClass::getA() {
157 void TestClass::setA(int _int) {
163 void TestClass::setB(float _float) {
169 void TestClass::setC(string _string) {
175 string TestClass::sumArray(vector<string> newA) {
178 int len = newA.size();
179 for(int c = 0; c < len; c++) {
186 int TestClass::setAndGetA(int newA) {
193 int TestClass::setACAndGetA(string newC, int newA) {