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);
25 void setB(float _float);
26 void setC(string _string);
27 string sumArray(vector<string> newA);
28 int setAndGetA(int newA);
29 int setACAndGetA(string newC, int newA);
38 TestClass::TestClass() {
43 // cbvec doesn't need to be initialized again
47 TestClass::TestClass(int _int, float _float, string _string) {
52 // cbvec doesn't need to be initialized again
56 char TestClass::getByte(char in) {
62 short TestClass::getShort(short in) {
68 int64_t TestClass::getLong(int64_t in) {
74 float TestClass::getFloat(float in) {
80 double TestClass::getDouble(double in) {
86 bool TestClass::getBoolean(bool in) {
92 char TestClass::getChar(char in) {
98 int TestClass::getA() {
104 void TestClass::setA(int _int) {
110 void TestClass::setB(float _float) {
116 void TestClass::setC(string _string) {
122 string TestClass::sumArray(vector<string> newA) {
125 int len = newA.size();
126 for(int c = 0; c < len; c++) {
133 int TestClass::setAndGetA(int newA) {
140 int TestClass::setACAndGetA(string newC, int newA) {