mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 22:40:02 +02:00
users: added json parameter for moench api
This commit is contained in:
parent
722883531d
commit
501c579f6b
@ -356,10 +356,16 @@ int slsDetectorUsers::setReceiverPartialFramesPadding(int f, int detPos) {
|
||||
}
|
||||
|
||||
int slsDetectorUsers::setReceiverFramesPerFile(int f, int detPos) {
|
||||
return detector.setReceiverFramesPerFile(f, detPos);
|
||||
return detector.setReceiverFramesPerFile(f, detPos);
|
||||
}
|
||||
|
||||
std::string slsDetectorUsers::setAdditionalJsonParameter(const std::string& key, const std::string& value, int detPos) {
|
||||
return detector.setAdditionalJsonParameter(key, value, detPos);
|
||||
}
|
||||
|
||||
std::string slsDetectorUsers::getAdditionalJsonParameter(const std::string& key, int detPos) {
|
||||
return detector.getAdditionalJsonParameter(key, detPos);
|
||||
}
|
||||
|
||||
/************************************************************************
|
||||
|
||||
|
@ -769,7 +769,24 @@ public:
|
||||
*/
|
||||
int setReceiverFramesPerFile(int f = -1, int detPos = -1);
|
||||
|
||||
/**
|
||||
* Sets the value for the additional json header parameter if found, else append it
|
||||
* @param key additional json header parameter
|
||||
* @param value additional json header parameter value (cannot be empty)
|
||||
* @param detPos -1 for all detectors in list or specific detector position
|
||||
* @returns the additional json header parameter value,
|
||||
* empty if no parameter found in additional json header
|
||||
*/
|
||||
std::string setAdditionalJsonParameter(const std::string& key, const std::string& value, int detPos = -1);
|
||||
|
||||
/**
|
||||
* Returns the additional json header parameter value
|
||||
* @param key additional json header parameter
|
||||
* @param detPos -1 for all detectors in list or specific detector position
|
||||
* @returns the additional json header parameter value,
|
||||
* empty if no parameter found in additional json header
|
||||
*/
|
||||
std::string getAdditionalJsonParameter(const std::string& key, int detPos = -1);
|
||||
|
||||
/************************************************************************
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user