mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 13:27:14 +02:00
something
This commit is contained in:
37
slsDetectorSoftware/threadFiles/Single.cpp
Normal file
37
slsDetectorSoftware/threadFiles/Single.cpp
Normal file
@ -0,0 +1,37 @@
|
||||
#include "Single.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <cstring>
|
||||
using namespace std;
|
||||
|
||||
char local_ans[1000];
|
||||
|
||||
Single::Single(int id) {
|
||||
detID = id;
|
||||
// cout<<"detID:"<<detID<<endl;
|
||||
}
|
||||
|
||||
Single::~Single() {
|
||||
}
|
||||
|
||||
int Single::getID(){
|
||||
return detID;
|
||||
}
|
||||
|
||||
int Single::printNumber(int i){
|
||||
cout << detID << " - Number:"<< i << endl;
|
||||
//usleep(detID*10000);
|
||||
//usleep(100000 - detID* 10000);
|
||||
return (i+1);
|
||||
}
|
||||
|
||||
string Single::printString(string s){
|
||||
cout << detID << " - String:"<< s << endl;
|
||||
return string("string done");
|
||||
}
|
||||
|
||||
char* Single::printCharArray(char a[]){
|
||||
cout << detID << " - Char array:"<< a << endl;
|
||||
strcpy(local_ans,"char done");
|
||||
return local_ans;
|
||||
}
|
Reference in New Issue
Block a user