mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-27 08:40:02 +02:00
33 lines
783 B
C++
33 lines
783 B
C++
//#ifdef SLS_RECEIVER_UDP_FUNCTIONS
|
|
/********************************************//**
|
|
* @file slsReceiverUDPFunctions.cpp
|
|
* @short does all the functions for a receiver, set/get parameters, start/stop etc.
|
|
***********************************************/
|
|
|
|
|
|
#include <iostream>
|
|
#include <string.h>
|
|
using namespace std;
|
|
|
|
|
|
#include "UDPInterface.h"
|
|
#include "UDPBaseImplementation.h"
|
|
#include "UDPStandardImplementation.h"
|
|
|
|
using namespace std;
|
|
|
|
UDPInterface * UDPInterface::create(string receiver_type){
|
|
|
|
if (receiver_type == "standard"){
|
|
FILE_LOG(logINFO) << "Starting " << receiver_type;
|
|
return new UDPStandardImplementation();
|
|
}
|
|
else{
|
|
FILE_LOG(logERROR) << "UDP interface not supported, using base implementation";
|
|
return new UDPBaseImplementation();
|
|
}
|
|
}
|
|
|
|
|
|
//#endif
|