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:
Erik Fröjdh
2019-08-23 14:32:44 +02:00
committed by Dhanya Thattil
parent 975a5a4cab
commit 5c06549982
15 changed files with 385 additions and 319 deletions

View File

@ -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();

View File

@ -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';
}