17 declareProperty(
"Session", std::string(
""),
18 "The session information of the catalog to log out. If none "
19 "provided then all catalogs are logged out.",
28 if (logoutSession.empty())
33 for (
auto &instance : keepAliveInstances) {
36 if (logoutSession == instance->getPropertyValue(
"Session")) {
37 keepAliveInstance->cancel();
40 }
else if (logoutSession.empty()) {
41 keepAliveInstance->cancel();
#define DECLARE_ALGORITHM(classname)
std::string getPropertyValue(const std::string &name) const override
Get the value of a property as a string.
CatalogLogout is responsible for logging out of a catalog based on session information provided by th...
void exec() override
execute the algorithm
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...
@ Input
An input workspace.