You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
427 B
19 lines
427 B
#define MICHLIB_NOSOURCE |
|
#include "odm.h" |
|
|
|
MString Data::ActionInfo(const CLArgs& args) |
|
{ |
|
MString info = std::visit( |
|
[](const auto& arg) -> auto |
|
{ |
|
using T = std::decay_t<decltype(arg)>; |
|
if constexpr(InfoSupported<T>) |
|
return arg.Info(); |
|
else |
|
return MString(); |
|
}, |
|
*this); |
|
if(!info.Exist()) return "Unsupported combination of action and source"; |
|
message(info); |
|
return ""; |
|
}
|
|
|