Skip to content

Commit

Permalink
Re #8107. Only add listeners by name in debug builds.
Browse files Browse the repository at this point in the history
Now that live data is becoming more mature & prominent, we should tidy
up the interface by removing the specific listener names from the list
of instruments that the user sees . They were just there for
development/testing purposes, and as such I'm leaving them in for debug
builds.
  • Loading branch information
RussellTaylor committed Oct 10, 2013
1 parent 0f5c962 commit f9c512c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Code/Mantid/Framework/LiveData/src/LiveDataAlgorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ namespace LiveData
instruments.push_back( it->name() );
}
}
// TEMPORARY: Add all the listeners by hand while this is all under development
#ifndef NDEBUG
// Debug builds only: Add all the listeners by hand for development testing purposes
std::vector<std::string> listeners = Mantid::API::LiveListenerFactory::Instance().getKeys();
instruments.insert( instruments.end(), listeners.begin(), listeners.end() );
#endif
declareProperty(new PropertyWithValue<std::string>("Instrument","", boost::make_shared<StringListValidator>(instruments)),
"Name of the instrument to monitor.");

Expand Down

0 comments on commit f9c512c

Please sign in to comment.