mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
Cleanup of the CmdProxy and migrated some commands (#52)
* migrated rx_fifodepth * Moved and cleand CmdProxy * rx_slient * new commands * examples * fixed result string print
This commit is contained in:

committed by
Dhanya Thattil

parent
975a5a4cab
commit
5c06549982
@ -47,7 +47,7 @@ using std::chrono::seconds;
|
||||
|
||||
int main() {
|
||||
Detector d;
|
||||
d.setConfig("/home/l_frojdh/virtual.config");
|
||||
// d.setConfig("/home/l_frojdh/virtual.config");
|
||||
|
||||
// d.setExptime(nanoseconds(500)); // set exptime of all modules
|
||||
// auto t0 = d.getExptime();
|
||||
|
@ -47,4 +47,13 @@ auto main() -> int {
|
||||
// nres.push_back(sls::time::ns(i));
|
||||
std::cout << "nres: " << sls::ToString(nres) << '\n';
|
||||
//
|
||||
|
||||
|
||||
/* Convert from Result<int> to Result<bool> */
|
||||
Result<int> int_result{0,1,0,3,-5};
|
||||
Result<bool> bool_result{int_result};
|
||||
std::cout << bool_result << '\n';
|
||||
|
||||
Result<std::string> string_res{"ein", "zwei", "drei"};
|
||||
std::cout << string_res << '\n';
|
||||
}
|
Reference in New Issue
Block a user