mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-02-09 04:58:40 +01:00
Dev/verify shm (#1276)
* removed verify, update, fixed getUser to be a free function, generated commands, python bindings yet to do * python bindings * fixed tests * minor * minor * format
This commit is contained in:
@@ -73,6 +73,7 @@ std::string Caller::list(int action) {
|
||||
}
|
||||
if (args.empty()) {
|
||||
std::string ret = "free\n";
|
||||
ret += "user\n";
|
||||
for (auto &f : functions) {
|
||||
ret += f.first + "\n";
|
||||
}
|
||||
@@ -188,6 +189,12 @@ std::string Caller::free(int action) {
|
||||
return "free\n\tFree detector shared memory\n";
|
||||
}
|
||||
|
||||
std::string Caller::user(int action) {
|
||||
// This function is purely for help, actual functionality is in the caller
|
||||
return "user\n\tUser details from shared memory (hostname, type, PID, "
|
||||
"User, Date).\n";
|
||||
}
|
||||
|
||||
std::string Caller::hostname(int action) {
|
||||
std::ostringstream os;
|
||||
if (action == defs::HELP_ACTION) {
|
||||
|
||||
Reference in New Issue
Block a user