Skip to content

Commit

Permalink
Removed namespaces and un-used property. Refs #8900.
Browse files Browse the repository at this point in the history
  • Loading branch information
jawrainey committed Feb 7, 2014
1 parent 840415e commit f4acbf0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
Expand Up @@ -14,8 +14,7 @@ namespace Mantid
Required Properties:
<UL>
<LI> OutputWorkspace - name of the OutputWorkspace which contains my investigations search
<LI> isValid - Boolean option used to check the validity of login session
<LI> OutputWorkspace - name of the OutputWorkspace which contains my investigations search
</UL>
@author Sofia Antony, ISIS Rutherford Appleton Laboratory
Expand Down
14 changes: 5 additions & 9 deletions Code/Mantid/Framework/ICat/src/CatalogMyDataSearch.cpp
Expand Up @@ -11,31 +11,27 @@ namespace Mantid
{
namespace ICat
{
using namespace Kernel;
using namespace API;

DECLARE_ALGORITHM(CatalogMyDataSearch)

/// Sets documentation strings for this algorithm
void CatalogMyDataSearch::initDocs()
{
this->setWikiSummary("This algorithm loads the logged in users' investigations.");
this->setOptionalMessage("This algorithm loads the logged in users' investigations.");
this->setWikiSummary("This algorithm loads the logged in users' investigations into a workspace.");
this->setOptionalMessage("This algorithm loads the logged in users' investigations into a workspace.");
}

/// Initialisation method.
void CatalogMyDataSearch::init()
{
declareProperty(new WorkspaceProperty<API::ITableWorkspace> ("OutputWorkspace", "", Direction::Output),
"The name of the workspace to store the result of MyData search ");
declareProperty("IsValid",true,"Boolean option used to check the validity of login session", Direction::Output);
declareProperty(new API::WorkspaceProperty<API::ITableWorkspace> ("OutputWorkspace", "", Kernel::Direction::Output),
"The name of the workspace to store the search results.");
}

/// Execution method.
void CatalogMyDataSearch::exec()
{
// Create and use the catalog the user has specified in Facilities.xml
auto outputws = WorkspaceFactory::Instance().createTable("TableWorkspace");
auto outputws = API::WorkspaceFactory::Instance().createTable("TableWorkspace");
CatalogAlgorithmHelper().createCatalog()->myData(outputws);
setProperty("OutputWorkspace",outputws);
}
Expand Down

0 comments on commit f4acbf0

Please sign in to comment.