Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
HelloWorldAlgorithm.cpp 482 B
#include "HelloWorldAlgorithm.h"

namespace Mantid {
namespace Algorithms {

DECLARE_ALGORITHM(HelloWorldAlgorithm)

/**
*/
void HelloWorldAlgorithm::init() {
  declareProperty("WhatKindOfWorld", "Mantid");
}

/**
*/
void HelloWorldAlgorithm::exec() {
  // g_log is a reference to the logger. It is used to print out information,
  // warning, and error messages
  std::string boevs = getProperty("WhatKindOfWorld");
  g_log.information() << "\nHello " + boevs + " World!\n";
}
}
}