Skip to content
Snippets Groups Projects
HelloWorldAlgorithm.cpp 482 B
Newer Older
namespace Mantid {
namespace Algorithms {
Roman Tolchenov's avatar
Roman Tolchenov committed

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";
Roman Tolchenov's avatar
Roman Tolchenov committed
}