mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-21 17:18:00 +02:00
autogenerated commands and make format
This commit is contained in:
@ -28,22 +28,22 @@ class ClientSocket : public DataSocket {
|
||||
class ReceiverSocket : public ClientSocket {
|
||||
public:
|
||||
ReceiverSocket(const std::string &hostname, uint16_t port_number)
|
||||
: ClientSocket("Receiver", hostname, port_number){};
|
||||
ReceiverSocket(struct sockaddr_in addr) : ClientSocket("Receiver", addr){};
|
||||
: ClientSocket("Receiver", hostname, port_number) {};
|
||||
ReceiverSocket(struct sockaddr_in addr) : ClientSocket("Receiver", addr) {};
|
||||
};
|
||||
|
||||
class DetectorSocket : public ClientSocket {
|
||||
public:
|
||||
DetectorSocket(const std::string &hostname, uint16_t port_number)
|
||||
: ClientSocket("Detector", hostname, port_number){};
|
||||
DetectorSocket(struct sockaddr_in addr) : ClientSocket("Detector", addr){};
|
||||
: ClientSocket("Detector", hostname, port_number) {};
|
||||
DetectorSocket(struct sockaddr_in addr) : ClientSocket("Detector", addr) {};
|
||||
};
|
||||
|
||||
class GuiSocket : public ClientSocket {
|
||||
public:
|
||||
GuiSocket(const std::string &hostname, uint16_t port_number)
|
||||
: ClientSocket("Gui", hostname, port_number){};
|
||||
GuiSocket(struct sockaddr_in addr) : ClientSocket("Gui", addr){};
|
||||
: ClientSocket("Gui", hostname, port_number) {};
|
||||
GuiSocket(struct sockaddr_in addr) : ClientSocket("Gui", addr) {};
|
||||
};
|
||||
|
||||
}; // namespace sls
|
||||
|
@ -33,5 +33,5 @@ class Timer {
|
||||
std::string name_;
|
||||
};
|
||||
|
||||
}; // namespace sls
|
||||
}; // namespace sls
|
||||
#endif // TIMER_H
|
||||
|
@ -47,7 +47,7 @@ class Logger {
|
||||
|
||||
public:
|
||||
Logger() = default;
|
||||
explicit Logger(TLogLevel level) : level(level){};
|
||||
explicit Logger(TLogLevel level) : level(level) {};
|
||||
~Logger() {
|
||||
// output in the destructor to allow for << syntax
|
||||
os << RESET << '\n';
|
||||
|
@ -125,7 +125,7 @@ class slsDetectorDefs {
|
||||
int x{0};
|
||||
int y{0};
|
||||
xy() = default;
|
||||
xy(int x, int y) : x(x), y(y){};
|
||||
xy(int x, int y) : x(x), y(y) {};
|
||||
} __attribute__((packed));
|
||||
#endif
|
||||
|
||||
@ -227,9 +227,9 @@ class slsDetectorDefs {
|
||||
int ymin{-1};
|
||||
int ymax{-1};
|
||||
ROI() = default;
|
||||
ROI(int xmin, int xmax) : xmin(xmin), xmax(xmax){};
|
||||
ROI(int xmin, int xmax) : xmin(xmin), xmax(xmax) {};
|
||||
ROI(int xmin, int xmax, int ymin, int ymax)
|
||||
: xmin(xmin), xmax(xmax), ymin(ymin), ymax(ymax){};
|
||||
: xmin(xmin), xmax(xmax), ymin(ymin), ymax(ymax) {};
|
||||
constexpr std::array<int, 4> getIntArray() const {
|
||||
return std::array<int, 4>({xmin, xmax, ymin, ymax});
|
||||
}
|
||||
|
Reference in New Issue
Block a user