mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-17 23:55:52 +01:00
moving SharedMemory into namespace sls
This commit is contained in:
@@ -24,6 +24,10 @@
|
||||
#include <sys/types.h>
|
||||
#include <cassert>
|
||||
|
||||
using sls::SharedMemory;
|
||||
using sls::SharedMemoryError;
|
||||
using sls::RuntimeError;
|
||||
|
||||
#define DEFAULT_HOSTNAME "localhost"
|
||||
|
||||
slsDetector::slsDetector(detectorType type, int multiId, int id, bool verify)
|
||||
@@ -290,7 +294,7 @@ void slsDetector::setDetectorSpecificParameters(detectorType type, detParameterL
|
||||
break;
|
||||
default:
|
||||
FILE_LOG(logERROR) << "Unknown detector type! " << type;
|
||||
throw std::exception();
|
||||
throw RuntimeError("Unknown detector type");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1736,7 +1736,7 @@ class slsDetector : public virtual slsDetectorDefs, public virtual errorDefs {
|
||||
int detId;
|
||||
|
||||
/** Shared Memory object */
|
||||
SharedMemory<sharedSlsDetector> detector_shm{0,0};
|
||||
sls::SharedMemory<sharedSlsDetector> detector_shm{0,0};
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user