Newer
Older
#include "HelloWorldAlgorithm.h"
namespace Mantid {
namespace Algorithms {
Russell Taylor
committed
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,
Anders Markvardsen
committed
// warning, and error messages
std::string boevs = getProperty("WhatKindOfWorld");
g_log.information() << "\nHello " + boevs + " World!\n";