-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs #6550 Added Tilt parameter and 3 output values per peak
Also includes some cpp warning fixes and wiki updates
- Loading branch information
1 parent
509436f
commit 9e1bb61
Showing
9 changed files
with
724 additions
and
405 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
Code/Mantid/Framework/API/inc/MantidAPI/SelectionNotificationService.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,49 @@ | ||
/* | ||
* SelectionNotificationService.h | ||
* | ||
* Created on: Mar 21, 2013 | ||
* Author: ruth | ||
*/ | ||
|
||
#ifndef SELECTIONNOTIFICATIONSERVICE_H_ | ||
#define SELECTIONNOTIFICATIONSERVICE_H_ | ||
|
||
|
||
#include "MantidKernel/DataService.h" | ||
#include "MantidAPI/DllConfig.h" | ||
#include "MantidKernel/SingletonHolder.h" | ||
#include <Poco/AutoPtr.h> | ||
|
||
namespace Mantid | ||
{ | ||
|
||
namespace API | ||
{ | ||
|
||
class DLLExport SelectionNotificationServiceImpl : public Kernel::DataService<std::vector<double>> | ||
{ | ||
|
||
|
||
|
||
private: | ||
|
||
/// Constructor | ||
SelectionNotificationServiceImpl(); | ||
/// Private, unimplemented copy constructor | ||
// SelectionNotificationServiceImpl(const AnalysisDataServiceImpl&); | ||
|
||
/// Private destructor | ||
virtual ~SelectionNotificationServiceImpl(){} | ||
|
||
}; | ||
///Forward declaration of a specialisation of SingletonHolder for AnalysisDataServiceImpl (needed for dllexport/dllimport) and a typedef for it. | ||
#ifdef _WIN32 | ||
// this breaks new namespace declaraion rules; need to find a better fix | ||
template class MANTID_API_DLL Mantid::Kernel::SingletonHolder<SelectionNotificationServiceImpl>; | ||
#endif /* _WIN32 */ | ||
typedef MANTID_API_DLL Mantid::Kernel::SingletonHolder<SelectionNotificationServiceImpl> SelectionNotificationService; | ||
|
||
} // Namespace API | ||
} // Namespace Mantid | ||
|
||
#endif /* SELECTIONNOTIFICATIONSERVICE_H_ */ |
27 changes: 27 additions & 0 deletions
27
Code/Mantid/Framework/API/src/SelectionNotificationService.cpp
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,27 @@ | ||
#include "MantidAPI/SelectionNotificationService.h" | ||
#include "MantidKernel/DataService.h" | ||
/* | ||
* SelectionNotificationService.cpp | ||
* | ||
* Created on: Mar 21, 2013 | ||
* Author: ruth | ||
*/ | ||
|
||
namespace Mantid | ||
{ | ||
namespace API | ||
{ | ||
|
||
|
||
SelectionNotificationServiceImpl::SelectionNotificationServiceImpl(): | ||
Mantid::Kernel::DataService<std::vector<double> >("SelectionNotificationService") | ||
{ | ||
} | ||
|
||
|
||
|
||
} // Namespace API | ||
} // Namespace Mantid | ||
|
||
|
||
|
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.