mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
const qualified multi calls, python fixes
This commit is contained in:
@ -844,6 +844,10 @@ int slsDetector::setReceiverPort(int port_number) {
|
||||
return detector_shm()->receiverTCPPort;
|
||||
}
|
||||
|
||||
int slsDetector::getReceiverPort() const{
|
||||
return detector_shm()->receiverTCPPort;
|
||||
}
|
||||
|
||||
int slsDetector::getControlPort() const {
|
||||
return detector_shm()->controlPort;
|
||||
}
|
||||
@ -852,9 +856,6 @@ int slsDetector::getStopPort() const {
|
||||
return detector_shm()->stopPort;
|
||||
}
|
||||
|
||||
int slsDetector::getReceiverPort() const {
|
||||
return detector_shm()->receiverTCPPort;
|
||||
}
|
||||
|
||||
int slsDetector::lockServer(int lock) {
|
||||
int fnum = F_LOCK_SERVER;
|
||||
@ -2344,7 +2345,7 @@ std::string slsDetector::getDetectorIP() {
|
||||
return std::string(detector_shm()->detectorIP);
|
||||
}
|
||||
|
||||
std::string slsDetector::setReceiver(const std::string &receiverIP) {
|
||||
std::string slsDetector::setReceiverHostname(const std::string &receiverIP) {
|
||||
FILE_LOG(logDEBUG1) << "Setting up Receiver with " << receiverIP;
|
||||
// recieverIP is none
|
||||
if (receiverIP == "none") {
|
||||
@ -2430,7 +2431,7 @@ std::string slsDetector::setReceiver(const std::string &receiverIP) {
|
||||
return std::string(detector_shm()->receiver_hostname);
|
||||
}
|
||||
|
||||
std::string slsDetector::getReceiver() {
|
||||
std::string slsDetector::getReceiverHostname() const {
|
||||
return std::string(detector_shm()->receiver_hostname);
|
||||
}
|
||||
|
||||
@ -2458,7 +2459,7 @@ std::string slsDetector::setReceiverUDPIP(const std::string &udpip) {
|
||||
return std::string(detector_shm()->receiverUDPIP);
|
||||
}
|
||||
|
||||
std::string slsDetector::getReceiverUDPIP() {
|
||||
std::string slsDetector::getReceiverUDPIP() const {
|
||||
return std::string(detector_shm()->receiverUDPIP);
|
||||
}
|
||||
|
||||
@ -2482,7 +2483,7 @@ std::string slsDetector::setReceiverUDPMAC(const std::string &udpmac) {
|
||||
return std::string(detector_shm()->receiverUDPMAC);
|
||||
}
|
||||
|
||||
std::string slsDetector::getReceiverUDPMAC() {
|
||||
std::string slsDetector::getReceiverUDPMAC() const {
|
||||
return std::string(detector_shm()->receiverUDPMAC);
|
||||
}
|
||||
|
||||
@ -2496,7 +2497,7 @@ int slsDetector::setReceiverUDPPort(int udpport) {
|
||||
return detector_shm()->receiverUDPPort;
|
||||
}
|
||||
|
||||
int slsDetector::getReceiverUDPPort() {
|
||||
int slsDetector::getReceiverUDPPort() const {
|
||||
return detector_shm()->receiverUDPPort;
|
||||
}
|
||||
|
||||
@ -2513,7 +2514,7 @@ int slsDetector::setReceiverUDPPort2(int udpport) {
|
||||
return detector_shm()->receiverUDPPort2;
|
||||
}
|
||||
|
||||
int slsDetector::getReceiverUDPPort2() {
|
||||
int slsDetector::getReceiverUDPPort2() const {
|
||||
return detector_shm()->receiverUDPPort2;
|
||||
}
|
||||
|
||||
@ -4023,7 +4024,7 @@ int64_t slsDetector::getRateCorrection() {
|
||||
|
||||
void slsDetector::printReceiverConfiguration(TLogLevel level) {
|
||||
FILE_LOG(level) << "#Detector " << detId << ":\n"
|
||||
<< "Receiver Hostname:\t" << getReceiver() << "\nDetector UDP IP (Source):\t\t" << getDetectorIP() << "\nDetector UDP MAC:\t\t" << getDetectorMAC() << "\nReceiver UDP IP:\t" << getReceiverUDPIP() << "\nReceiver UDP MAC:\t" << getReceiverUDPMAC() << "\nReceiver UDP Port:\t" << getReceiverUDPPort() << "\nReceiver UDP Port2:\t" << getReceiverUDPPort2();
|
||||
<< "Receiver Hostname:\t" << getReceiverHostname() << "\nDetector UDP IP (Source):\t\t" << getDetectorIP() << "\nDetector UDP MAC:\t\t" << getDetectorMAC() << "\nReceiver UDP IP:\t" << getReceiverUDPIP() << "\nReceiver UDP MAC:\t" << getReceiverUDPMAC() << "\nReceiver UDP Port:\t" << getReceiverUDPPort() << "\nReceiver UDP Port2:\t" << getReceiverUDPPort2();
|
||||
}
|
||||
|
||||
int slsDetector::setReceiverOnline(int value) {
|
||||
|
@ -819,13 +819,13 @@ class slsDetector : public virtual slsDetectorDefs, public virtual errorDefs {
|
||||
* @param receiver receiver hostname or IP address
|
||||
* @returns the receiver IP address from shared memory
|
||||
*/
|
||||
std::string setReceiver(const std::string &receiver);
|
||||
std::string setReceiverHostname(const std::string &receiver);
|
||||
|
||||
/**
|
||||
* Returns the receiver IP address\sa sharedSlsDetector
|
||||
* @returns the receiver IP address
|
||||
*/
|
||||
std::string getReceiver();
|
||||
std::string getReceiverHostname() const;
|
||||
|
||||
/**
|
||||
* Validates the format of the receiver UDP IP address and sets it \sa sharedSlsDetector
|
||||
@ -838,7 +838,7 @@ class slsDetector : public virtual slsDetectorDefs, public virtual errorDefs {
|
||||
* Returns the receiver UDP IP address\sa sharedSlsDetector
|
||||
* @returns the receiver UDP IP address
|
||||
*/
|
||||
std::string getReceiverUDPIP();
|
||||
std::string getReceiverUDPIP() const;
|
||||
|
||||
/**
|
||||
* Validates the format of the receiver UDP MAC address and sets it \sa sharedSlsDetector
|
||||
@ -851,7 +851,7 @@ class slsDetector : public virtual slsDetectorDefs, public virtual errorDefs {
|
||||
* Returns the receiver UDP MAC address\sa sharedSlsDetector
|
||||
* @returns the receiver UDP MAC address
|
||||
*/
|
||||
std::string getReceiverUDPMAC();
|
||||
std::string getReceiverUDPMAC() const;
|
||||
|
||||
/**
|
||||
* Sets the receiver UDP port\sa sharedSlsDetector
|
||||
@ -864,7 +864,7 @@ class slsDetector : public virtual slsDetectorDefs, public virtual errorDefs {
|
||||
* Returns the receiver UDP port\sa sharedSlsDetector
|
||||
* @returns the receiver UDP port
|
||||
*/
|
||||
int getReceiverUDPPort();
|
||||
int getReceiverUDPPort() const;
|
||||
|
||||
/**
|
||||
* Sets the receiver UDP port 2\sa sharedSlsDetector
|
||||
@ -877,7 +877,7 @@ class slsDetector : public virtual slsDetectorDefs, public virtual errorDefs {
|
||||
* Returns the receiver UDP port 2 of same interface\sa sharedSlsDetector
|
||||
* @returns the receiver UDP port 2 of same interface
|
||||
*/
|
||||
int getReceiverUDPPort2();
|
||||
int getReceiverUDPPort2() const;
|
||||
|
||||
/**
|
||||
* Sets the client zmq port\sa sharedSlsDetector
|
||||
|
@ -2796,9 +2796,9 @@ std::string slsDetectorCommand::cmdNetworkParameter(int narg, char *args[], int
|
||||
return myDet->getDetectorIP(detPos);
|
||||
} else if (cmd == "rx_hostname") {
|
||||
if (action == PUT_ACTION) {
|
||||
myDet->setReceiver(args[1], detPos);
|
||||
myDet->setReceiverHostname(args[1], detPos);
|
||||
}
|
||||
return myDet->getReceiver(detPos);
|
||||
return myDet->getReceiverHostname(detPos);
|
||||
} else if (cmd == "rx_udpip") {
|
||||
if (action == PUT_ACTION) {
|
||||
myDet->setReceiverUDPIP(args[1], detPos);
|
||||
|
Reference in New Issue
Block a user