Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs #9041 Merging master in to take care of a merge conflict
Conflict occurred in refl_gui.py Merge branch origin master into 'feature/9041_refl_gui_plotting' Conflicts: Code/Mantid/scripts/Interface/ui/reflectometer/refl_gui.py
- Loading branch information
Showing
226 changed files
with
79,333 additions
and
64,709 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,73 @@ | ||
#ifndef MANTID_API_ICATLOG_H_ | ||
#define MANTID_API_ICATLOG_H_ | ||
|
||
#include "MantidAPI/ITableWorkspace.h" | ||
|
||
namespace Mantid | ||
{ | ||
namespace ICat | ||
{ | ||
class CatalogSearchParam; | ||
} | ||
|
||
//forward declarations | ||
namespace ICat | ||
{ | ||
class CatalogSearchParam; | ||
} | ||
|
||
namespace API | ||
{ | ||
namespace API | ||
{ | ||
/** | ||
This class creates an interface for information catalogs to support multiple facilities | ||
/** | ||
This class creates an interface for information catalogs to support multiple facilities | ||
@author Sofia Antony, ISIS Rutherford Appleton Laboratory | ||
@date 23/09/2010 | ||
@author Sofia Antony, ISIS Rutherford Appleton Laboratory | ||
@date 23/09/2010 | ||
Copyright © 2010 ISIS Rutherford Appleton Laboratory & NScD Oak Ridge National Laboratory | ||
Copyright © 2010 ISIS Rutherford Appleton Laboratory & NScD Oak Ridge National Laboratory | ||
This file is part of Mantid. | ||
This file is part of Mantid. | ||
Mantid is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 3 of the License, or | ||
(at your option) any later version. | ||
Mantid is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 3 of the License, or | ||
(at your option) any later version. | ||
Mantid is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
Mantid is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
File change history is stored at: <https://github.com/mantidproject/mantid>. | ||
Code Documentation is available at: <http://doxygen.mantidproject.org> | ||
File change history is stored at: <https://github.com/mantidproject/mantid>. | ||
Code Documentation is available at: <http://doxygen.mantidproject.org> | ||
*/ | ||
class DLLExport ICatalog | ||
{ | ||
public: | ||
// virtual destructor | ||
virtual ~ICatalog(){}; | ||
/// method to login to a catalog | ||
virtual void login(const std::string&,const std::string&,const std::string&)=0; | ||
/// logout from catalog | ||
virtual void logout()=0; | ||
///Search investigations | ||
virtual void search(const ICat::CatalogSearchParam&,ITableWorkspace_sptr&, const int &,const int &)=0; | ||
/// Obtain the number of results returned by the search method. | ||
virtual int64_t getNumberOfSearchResults(const ICat::CatalogSearchParam&)=0; | ||
/// search logged in users data | ||
virtual void myData(ITableWorkspace_sptr &)=0; | ||
/// get datasets. | ||
virtual void getDataSets(const std::string& ,ITableWorkspace_sptr&)=0; | ||
/// get datafiles | ||
virtual void getDataFiles(const std::string&,ITableWorkspace_sptr &)=0; | ||
/// instrument list | ||
virtual void listInstruments(std::vector<std::string>&)=0; | ||
/// get investigationtype lists | ||
virtual void listInvestigationTypes(std::vector<std::string>&)=0; | ||
/// get file locations | ||
virtual void getFileLocation(const long long&,std::string&)=0; | ||
/// get URLs of the files | ||
virtual void getDownloadURL(const long long&,std::string&)=0; | ||
/// get URL of where to PUT (publish) files. | ||
virtual const std::string getUploadURL(const std::string&,const std::string&,const std::string&)=0; | ||
/// keep alive | ||
virtual void keepAlive()=0; | ||
///keep alive in minutes | ||
virtual int keepAliveinminutes()=0; | ||
}; | ||
class DLLExport ICatalog | ||
{ | ||
public: | ||
/// Virtual destructor | ||
virtual ~ICatalog(){}; | ||
/// method to login to a catalog | ||
virtual void login(const std::string&,const std::string&,const std::string&)=0; | ||
/// logout from catalog | ||
virtual void logout()=0; | ||
///Search investigations | ||
virtual void search(const ICat::CatalogSearchParam&,ITableWorkspace_sptr&, const int &,const int &)=0; | ||
/// Obtain the number of results returned by the search method. | ||
virtual int64_t getNumberOfSearchResults(const ICat::CatalogSearchParam&)=0; | ||
/// search logged in users data | ||
virtual void myData(ITableWorkspace_sptr &)=0; | ||
/// get datasets. | ||
virtual void getDataSets(const std::string& ,ITableWorkspace_sptr&)=0; | ||
/// get datafiles | ||
virtual void getDataFiles(const std::string&,ITableWorkspace_sptr &)=0; | ||
/// instrument list | ||
virtual void listInstruments(std::vector<std::string>&)=0; | ||
/// get investigationtype lists | ||
virtual void listInvestigationTypes(std::vector<std::string>&)=0; | ||
/// keep alive | ||
virtual void keepAlive()=0; | ||
}; | ||
|
||
typedef boost::shared_ptr<ICatalog> ICatalog_sptr; | ||
typedef boost::shared_ptr<const ICatalog> ICatalog_const_sptr; | ||
typedef boost::shared_ptr<ICatalog> ICatalog_sptr; | ||
typedef boost::shared_ptr<const ICatalog> ICatalog_const_sptr; | ||
} | ||
} | ||
} | ||
#endif | ||
|
||
#endif /*MANTID_API_ICATLOG_H_*/ |
55 changes: 55 additions & 0 deletions
55
Code/Mantid/Framework/API/inc/MantidAPI/ICatalogInfoService.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#ifndef MANTID_API_ICATLOGINFOSERVICE_H_ | ||
#define MANTID_API_ICATLOGINFOSERVICE_H_ | ||
|
||
#include "MantidAPI/DllConfig.h" | ||
|
||
namespace Mantid | ||
{ | ||
namespace API | ||
{ | ||
/** | ||
This class is responsible for interfacing with the Information Data Service (IDS) | ||
to upload and download files to and from the archives. | ||
@author Jay Rainey, ISIS Rutherford Appleton Laboratory | ||
@date 24/02/2010 | ||
Copyright © 2010 ISIS Rutherford Appleton Laboratory & NScD Oak Ridge National Laboratory | ||
This file is part of Mantid. | ||
Mantid is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 3 of the License, or | ||
(at your option) any later version. | ||
Mantid is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
File change history is stored at: <https://github.com/mantidproject/mantid>. | ||
Code Documentation is available at: <http://doxygen.mantidproject.org> | ||
*/ | ||
class DLLExport ICatalogInfoService | ||
{ | ||
public: | ||
// Virtual destructor | ||
virtual ~ICatalogInfoService(){}; | ||
/// Obtain the datafile location string from the archives. | ||
virtual const std::string getFileLocation(const long long&)=0; | ||
/// Obtain url to download a file from. | ||
virtual const std::string getDownloadURL(const long long&)=0; | ||
/// Obtain the url to upload a file to. | ||
virtual const std::string getUploadURL(const std::string&,const std::string&,const std::string&)=0; | ||
}; | ||
|
||
typedef boost::shared_ptr<ICatalogInfoService> ICatalogInfoService_sptr; | ||
typedef boost::shared_ptr<const ICatalogInfoService> ICatalogInfoService_const_sptr; | ||
} | ||
} | ||
|
||
#endif /*MANTID_API_ICATLOGINFOSERVICE_H_*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.