removal of using namespace std from theadFiles

This commit is contained in:
Erik Frojdh 2018-05-24 14:47:45 +02:00
parent b78b8425fd
commit 212218396a
16 changed files with 21 additions and 28 deletions

View File

@ -15,7 +15,7 @@
#include <string> #include <string>
#include <cstring> #include <cstring>
#include <iostream> #include <iostream>
// using namespace std; //
/** Error flags */ /** Error flags */
/*Assumption: Only upto 63 detectors */ /*Assumption: Only upto 63 detectors */

View File

@ -23,7 +23,7 @@ class ZmqSocket;
//using namespace std;

View File

@ -7,7 +7,7 @@
#include <stdlib.h> #include <stdlib.h>
//using namespace std;
int dummyCallback(detectorData* d, int p,void*) { int dummyCallback(detectorData* d, int p,void*) {
cout << "got data " << p << endl; cout << "got data " << p << endl;

View File

@ -6,7 +6,7 @@
#include "slsDetector.h" #include "slsDetector.h"
#include "multiSlsDetector.h" #include "multiSlsDetector.h"
#include "slsDetectorCommand.h" #include "slsDetectorCommand.h"
//using namespace std;
/** @short This class handles the command line I/Os, help etc. of the text clients */ /** @short This class handles the command line I/Os, help etc. of the text clients */

View File

@ -8,7 +8,7 @@
#include <fstream> #include <fstream>
////using namespace std; //
/** /**

View File

@ -54,11 +54,6 @@
#include <string> #include <string>
// using std::string;
// using std::ofstream;
// using std::ifstream;
// using namespace std;
/** /**
@libdoc The slsDetectorBase contains also a set of purely virtual functions useful for the implementation of the derived classes @libdoc The slsDetectorBase contains also a set of purely virtual functions useful for the implementation of the derived classes

View File

@ -5,7 +5,7 @@
#include "sls_detector_defs.h" #include "sls_detector_defs.h"
#include "slsDetectorUtils.h" #include "slsDetectorUtils.h"
//using namespace std;
/** @short This class handles the command line I/Os, help etc. of the text clients */ /** @short This class handles the command line I/Os, help etc. of the text clients */

View File

@ -22,7 +22,7 @@ class multiSlsDetectorCommand;
#include <string> #include <string>
//using namespace std;

View File

@ -31,7 +31,7 @@ extern "C" {
#include <math.h> #include <math.h>
#include <semaphore.h> #include <semaphore.h>
#include <cstdlib> #include <cstdlib>
//using namespace std;
//#include "slsDetectorActions_Standalone.h" //#include "slsDetectorActions_Standalone.h"

View File

@ -8,7 +8,6 @@
#include "Global.h" #include "Global.h"
using namespace std;
class CondVar { class CondVar {
public: public:

View File

@ -4,7 +4,6 @@
#include "Global.h" #include "Global.h"
#include <string> #include <string>
using namespace std;
class Single; class Single;
class ThreadPool; class ThreadPool;
@ -15,10 +14,10 @@ public:
Multi(); Multi();
~Multi(); ~Multi();
string executeCommand(int argc,char* argv[]); std::string executeCommand(int argc,char* argv[]);
int printNumber(int inum); int printNumber(int inum);
string printString(string s); std::string printString(std::string s);
char* printCharArray(char a[]); char* printCharArray(char a[]);
int createThreadPool(); int createThreadPool();

View File

@ -10,7 +10,7 @@
#include "Global.h" #include "Global.h"
using namespace std; // using namespace std;
class Mutex class Mutex
{ {

View File

@ -3,7 +3,7 @@
#include "Multi.h" #include "Multi.h"
#include <string> #include <string>
using namespace std; // using namespace std;
class Single { class Single {
public: public:

View File

@ -14,7 +14,7 @@
#include <iostream> #include <iostream>
#include <stdio.h> #include <stdio.h>
using namespace std; // using namespace std;
class slsDetector; class slsDetector;
@ -121,14 +121,14 @@ protected:
func0_t <runStatus >* m4; func0_t <runStatus >* m4;
func1_t <int, int>* m5; func1_t <int, int>* m5;
func1_t <int, double>* m6; func1_t <int, double>* m6;
func1_t <string, string>* m7; func1_t <std::string, std::string>* m7;
func1_t <detectorSettings, int>* m8; func1_t <detectorSettings, int>* m8;
func2_t <int, int,int>* m9; func2_t <int, int,int>* m9;
func2_t <int, string,int>* m10; func2_t <int, std::string,int>* m10;
func2_t <dacs_t, dacIndex,int>* m11; func2_t <dacs_t, dacIndex,int>* m11;
func2_t <detectorSettings, detectorSettings,int>* m12; func2_t <detectorSettings, detectorSettings,int>* m12;
func2_t <int64_t, timerIndex,int64_t>* m13; func2_t <int64_t, timerIndex,int64_t>* m13;
func2_t <string, networkParameter,string>* m14; func2_t <std::string, networkParameter,std::string>* m14;
func3_t <int, int,int,int>* m15; func3_t <int, int,int,int>* m15;
func4_t <int, trimMode,int,int,int>* m16; func4_t <int, trimMode,int,int,int>* m16;
func4_t <int, int,int,detectorSettings,int>* m17; func4_t <int, int,int,detectorSettings,int>* m17;
@ -146,14 +146,14 @@ public:
Task(func0_t <runStatus >* t): SuperTask(),fnum(4){m4 = t;}; Task(func0_t <runStatus >* t): SuperTask(),fnum(4){m4 = t;};
Task(func1_t <int, int>* t): SuperTask(),fnum(5){m5 = t;}; Task(func1_t <int, int>* t): SuperTask(),fnum(5){m5 = t;};
Task(func1_t <int, double>* t): SuperTask(),fnum(6){m6 = t;}; Task(func1_t <int, double>* t): SuperTask(),fnum(6){m6 = t;};
Task(func1_t <string, string>* t): SuperTask(),fnum(7){m7 = t;}; Task(func1_t <std::string, std::string>* t): SuperTask(),fnum(7){m7 = t;};
Task(func1_t <detectorSettings, int>* t): SuperTask(),fnum(8){m8 = t;}; Task(func1_t <detectorSettings, int>* t): SuperTask(),fnum(8){m8 = t;};
Task(func2_t <int, int,int>* t): SuperTask(),fnum(9){m9 = t;}; Task(func2_t <int, int,int>* t): SuperTask(),fnum(9){m9 = t;};
Task(func2_t <int, string,int>* t): SuperTask(),fnum(10){m10 = t;}; Task(func2_t <int, std::string,int>* t): SuperTask(),fnum(10){m10 = t;};
Task(func2_t <dacs_t, dacIndex,int>* t): SuperTask(),fnum(11){m11 = t;}; Task(func2_t <dacs_t, dacIndex,int>* t): SuperTask(),fnum(11){m11 = t;};
Task(func2_t <detectorSettings, detectorSettings,int>* t): SuperTask(),fnum(12){m12 = t;}; Task(func2_t <detectorSettings, detectorSettings,int>* t): SuperTask(),fnum(12){m12 = t;};
Task(func2_t <int64_t, timerIndex,int64_t>* t): SuperTask(),fnum(13){m13 = t;}; Task(func2_t <int64_t, timerIndex,int64_t>* t): SuperTask(),fnum(13){m13 = t;};
Task(func2_t <string, networkParameter,string>* t): SuperTask(),fnum(14){m14 = t;}; Task(func2_t <std::string, networkParameter,std::string>* t): SuperTask(),fnum(14){m14 = t;};
Task(func3_t <int, int,int,int>* t): SuperTask(),fnum(15){m15 = t;}; Task(func3_t <int, int,int,int>* t): SuperTask(),fnum(15){m15 = t;};
Task(func4_t <int, trimMode,int,int,int>* t): SuperTask(),fnum(16){m16 = t;}; Task(func4_t <int, trimMode,int,int,int>* t): SuperTask(),fnum(16){m16 = t;};
Task(func4_t <int, int,int,detectorSettings,int>* t): SuperTask(),fnum(17){m17 = t;}; Task(func4_t <int, int,int,detectorSettings,int>* t): SuperTask(),fnum(17){m17 = t;};

View File

@ -1,6 +1,6 @@
#include "ThreadPool.h" #include "ThreadPool.h"
#include <pthread.h> #include <pthread.h>
using namespace std;
ThreadPool::ThreadPool(int pool_size) : m_pool_size(pool_size){ ThreadPool::ThreadPool(int pool_size) : m_pool_size(pool_size){
#ifdef VERBOSE #ifdef VERBOSE
cout << "Constructed ThreadPool of size " << m_pool_size << endl; cout << "Constructed ThreadPool of size " << m_pool_size << endl;

View File

@ -14,7 +14,7 @@
#include "CondVar.h" #include "CondVar.h"
#include "Global.h" #include "Global.h"
#include <semaphore.h> #include <semaphore.h>
using namespace std; // using namespace std;
class ThreadPool class ThreadPool