Skip to content

Commit

Permalink
Re #6201. Moving from builtin NeXusCPP for to system installed library
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Jan 30, 2013
1 parent 761ea1b commit 1925998
Show file tree
Hide file tree
Showing 67 changed files with 86 additions and 3,323 deletions.
1 change: 0 additions & 1 deletion Code/Mantid/Build/CMake/CommonSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ if ( CPPCHECK_EXECUTABLE )
Framework/Algorithms/inc
Framework/GPUAlgorithms/inc
Framework/PythonInterface/inc
Framework/NexusCPP/inc
Framework/Nexus/inc
Framework/MPIAlgorithms/inc
Framework/MDAlgorithms/inc
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/Build/CMake/CommonVatesSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ Framework/Geometry
Framework/Kernel
Framework/DataObjects
Framework/MDEvents
Framework/NexusCPP
)

set ( COMMONVATES_SETUP_DONE TRUE )
2 changes: 0 additions & 2 deletions Code/Mantid/Build/CMake/WindowsNSIS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
install ( DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Framework/Kernel/inc/MantidKernel DESTINATION include PATTERN ".svn" EXCLUDE PATTERN ".git" EXCLUDE )
install ( DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Framework/Geometry/inc/MantidGeometry DESTINATION include PATTERN ".svn" EXCLUDE PATTERN ".git" EXCLUDE )
install ( DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Framework/API/inc/MantidAPI DESTINATION include PATTERN ".svn" EXCLUDE PATTERN ".git" EXCLUDE )
install ( DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Framework/NexusCPP/inc/MantidNexusCPP DESTINATION include PATTERN ".svn" EXCLUDE PATTERN ".git" EXCLUDE )

# scons directory for sser building
install ( DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Installers/WinInstaller/scons-local/ DESTINATION scons-local PATTERN ".svn" EXCLUDE PATTERN ".git" EXCLUDE )
Expand All @@ -57,7 +56,6 @@
install ( FILES "${CMAKE_CURRENT_BINARY_DIR}/bin/${WINDOWS_DEPLOYMENT_TYPE}/MantidKernel.lib" DESTINATION UserAlgorithms)
install ( FILES "${CMAKE_CURRENT_BINARY_DIR}/bin/${WINDOWS_DEPLOYMENT_TYPE}/MantidGeometry.lib" DESTINATION UserAlgorithms)
install ( FILES "${CMAKE_CURRENT_BINARY_DIR}/bin/${WINDOWS_DEPLOYMENT_TYPE}/MantidAPI.lib" DESTINATION UserAlgorithms)
install ( FILES "${CMAKE_CURRENT_BINARY_DIR}/bin/${WINDOWS_DEPLOYMENT_TYPE}/MantidNexusCPP.lib" DESTINATION UserAlgorithms)
install ( FILES "${CMAKE_CURRENT_BINARY_DIR}/bin/${WINDOWS_DEPLOYMENT_TYPE}/MantidDataObjects.lib" DESTINATION UserAlgorithms)
install ( FILES "${CMAKE_CURRENT_BINARY_DIR}/bin/${WINDOWS_DEPLOYMENT_TYPE}/MantidCurveFitting.lib" DESTINATION UserAlgorithms)
install ( FILES ${CMAKE_LIBRARY_PATH}/PocoFoundation.lib ${CMAKE_LIBRARY_PATH}/PocoXML.lib ${CMAKE_LIBRARY_PATH}/boost_date_time-vc100-mt-1_43.lib DESTINATION UserAlgorithms)
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/API/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ set_target_properties ( API PROPERTIES OUTPUT_NAME MantidAPI
# Add to the 'Framework' group in VS
set_property ( TARGET API PROPERTY FOLDER "MantidFramework" )

target_link_libraries ( API ${MANTIDLIBS} ${WINSOCK} )
target_link_libraries ( API ${MANTIDLIBS} ${WINSOCK} ${NEXUS_LIBRARIES} )

# Add the unit tests directory
add_subdirectory ( test )
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/API/inc/MantidAPI/BoxController.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "MantidKernel/MultiThreaded.h"
#include "MantidKernel/System.h"
#include "MantidKernel/ThreadPool.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include <nexus/NeXusFile.hpp>
#include <boost/shared_ptr.hpp>
#include <vector>

Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/API/inc/MantidAPI/LogManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "MantidKernel/Statistics.h"
#include "MantidKernel/TimeSplitter.h"
#include "MantidKernel/Matrix.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include <nexus/NeXusFile.hpp>
#include <vector>

namespace Mantid
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/Framework/API/inc/MantidAPI/MatrixWorkspace.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <set>
#include "MantidAPI/ISpectrum.h"
#include "MantidKernel/DateAndTime.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include <boost/scoped_ptr.hpp>
#include "MantidAPI/IMDIterator.h"

Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/API/inc/MantidAPI/PropertyNexus.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "MantidKernel/System.h"
#include "MantidKernel/Property.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include <nexus/NeXusFile.hpp>


namespace Mantid
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/API/inc/MantidAPI/Run.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "MantidGeometry/Instrument/Goniometer.h"
#include "MantidKernel/Statistics.h"
#include "MantidKernel/TimeSplitter.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include <nexus/NeXusFile.hpp>
#include <vector>

namespace Mantid
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/API/inc/MantidAPI/WorkspaceHistory.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//----------------------------------------------------------------------
#include "MantidAPI/AlgorithmHistory.h"
#include "MantidKernel/EnvironmentHistory.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include <nexus/NeXusFile.hpp>
#include <boost/shared_ptr.hpp>
#include <ctime>
#include <list>
Expand Down
1 change: 0 additions & 1 deletion Code/Mantid/Framework/API/src/MatrixWorkspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <numeric>
#include "MantidAPI/NumericAxis.h"
#include "MantidKernel/DateAndTime.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include <boost/math/special_functions/fpclassify.hpp>
#include "MantidKernel/MultiThreaded.h"
#include "MantidKernel/Strings.h"
Expand Down
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/API/src/PropertyNexus.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "MantidAPI/PropertyNexus.h"

#include "MantidNexusCPP/NeXusException.hpp"
#include "MantidNexusCPP/NeXusFile.hpp"
#include <nexus/NeXusException.hpp>
#include <nexus/NeXusFile.hpp>

#include "MantidKernel/ArrayProperty.h"
#include "MantidKernel/DateAndTime.h"
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/API/src/Sample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "MantidGeometry/Crystal/OrientedLattice.h"
#include "MantidGeometry/Objects/ShapeFactory.h"

#include "MantidNexusCPP/NeXusException.hpp"
#include <nexus/NeXusException.hpp>


namespace Mantid
Expand Down
2 changes: 0 additions & 2 deletions Code/Mantid/Framework/Algorithms/src/ApplyCalibration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ To be written
#include "MantidAPI/FileProperty.h"
#include "MantidAPI/MatrixWorkspace.h"
#include "MantidAPI/SpectraDetectorMap.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include "MantidNexusCPP/NeXusException.hpp"
#include <boost/scoped_ptr.hpp>

namespace Mantid
Expand Down
6 changes: 1 addition & 5 deletions Code/Mantid/Framework/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ set ( MANTIDLIBS ${Boost_LIBRARIES} ${POCO_LIBRARIES} ${TCMALLOC_LIBRARY} ${MPI
add_custom_target ( FrameworkTests ) # target for all framework tests
add_dependencies ( check FrameworkTests )

include_directories (NexusCPP/inc)
add_subdirectory (NexusCPP)
set ( MANTIDLIBS ${MANTIDLIBS} NexusCPP )

include_directories (Kernel/inc)
add_subdirectory (Kernel)
set ( MANTIDLIBS ${MANTIDLIBS} Kernel )
Expand Down Expand Up @@ -146,7 +142,7 @@ add_subdirectory (ScriptRepository)

set ( FRAMEWORK_LIBS Kernel Geometry API PythonAPI PythonKernelModule
PythonGeometryModule PythonAPIModule DataObjects
DataHandling Nexus NexusCPP Algorithms CurveFitting ICat
DataHandling Nexus Algorithms CurveFitting ICat
Crystal MDAlgorithms MDEvents WorkflowAlgorithms
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
//----------------------------------------------------------------------
#include "MantidAPI/IDataFileChecker.h"
#include "MantidDataObjects/EventWorkspace.h"

//Copy of the NexusCpp API was placed in MantidNexus
#include "MantidNexusCPP/NeXusFile.hpp"
#include "MantidNexusCPP/NeXusException.hpp"
#include <nexus/NeXusFile.hpp>
#include <nexus/NeXusException.hpp>
#include "MantidDataObjects/Events.h"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "MantidDataObjects/Workspace2D.h"
#include "MantidDataHandling/ISISRunLogs.h"
#include "MantidNexus/NexusClasses.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include <nexus/NeXusFile.hpp>

#include <boost/scoped_ptr.hpp>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@
#include "MantidAPI/MatrixWorkspace.h"
#include "MantidAPI/Sample.h"
#include "MantidDataObjects/Workspace2D.h"

//Copy of the NexusCpp API was placed in MantidNexus
#include "MantidNexusCPP/NeXusFile.hpp"
#include "MantidNexusCPP/NeXusException.hpp"

#include <nexus/NeXusFile.hpp>
#include <nexus/NeXusException.hpp>
#include "MantidAPI/DeprecatedAlgorithm.h"

namespace Mantid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Includes
//----------------------------------------------------------------------
#include "MantidAPI/Algorithm.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include <nexus/NeXusFile.hpp>

namespace Mantid
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
#include "MantidAPI/Algorithm.h"
#include "MantidAPI/MatrixWorkspace.h"
#include <boost/scoped_array.hpp>
//Copy of the NexusCpp API was placed in MantidNexus
#include "MantidNexusCPP/NeXusFile.hpp"
#include "MantidNexusCPP/NeXusException.hpp"
#include <nexus/NeXusFile.hpp>
#include <nexus/NeXusException.hpp>

namespace Mantid
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "MantidAPI/IDataFileChecker.h"

#include "MantidNexus/NexusClasses.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include <nexus/NeXusFile.hpp>

namespace Mantid
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
#include "MantidAPI/Sample.h"
#include "MantidDataObjects/Workspace2D.h"
#include "MantidDataObjects/EventWorkspace.h"

//Copy of the NexusCpp API was placed in MantidNexus
#include "MantidNexusCPP/NeXusFile.hpp"
#include "MantidNexusCPP/NeXusException.hpp"
#include <nexus/NeXusFile.hpp>
#include <nexus/NeXusException.hpp>

namespace Mantid
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@
#include "MantidDataObjects/Workspace2D.h"
#include "MantidDataObjects/EventWorkspace.h"
#include "MantidGeometry/Instrument/RectangularDetector.h"

//Copy of the NexusCpp API was placed in MantidNexus
#include "MantidNexusCPP/NeXusFile.hpp"
#include "MantidNexusCPP/NeXusException.hpp"
#include <nexus/NeXusFile.hpp>
#include <nexus/NeXusException.hpp>

using namespace ::NeXus;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ and calculates the resolved positions of all the detectors and then writes this
#include "MantidAPI/FileProperty.h"
#include "MantidDataObjects/Workspace2D.h"

#include "MantidNexusCPP/NeXusFile.hpp"
#include "MantidNexusCPP/NeXusException.hpp"
#include <nexus/NeXusFile.hpp>
#include <nexus/NeXusException.hpp>

#include <Poco/File.h>
#include <Poco/Path.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ If the DetectorTableFilename property is blank then it is assumed that a 1:1 spe
#include "MantidKernel/VectorHelper.h"

#include "LoadRaw/isisraw2.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include "MantidNexusCPP/NeXusException.hpp"
#include <nexus/NeXusFile.hpp>
#include <nexus/NeXusException.hpp>

#include <Poco/File.h>

Expand Down
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/DataHandling/src/LoadISISNexus2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#include "MantidGeometry/Instrument/Detector.h"
#include "MantidGeometry/Instrument/XMLlogfile.h"

#include "MantidNexusCPP/NeXusFile.hpp"
#include "MantidNexusCPP/NeXusException.hpp"
#include <nexus/NeXusFile.hpp>
#include <nexus/NeXusException.hpp>

#include <Poco/Path.h>
#include <Poco/DateTimeFormatter.h>
Expand Down
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/DataHandling/src/LoadMuonNexus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
#include <boost/shared_ptr.hpp>
#include "MantidNexus/MuonNexusReader.h"
#include "MantidNexus/NexusClasses.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include "MantidNexusCPP/NeXusException.hpp"
#include <nexus/NeXusFile.hpp>
#include <nexus/NeXusException.hpp>

namespace Mantid
{
Expand Down
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/DataHandling/src/LoadMuonNexus2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
#include "MantidKernel/ConfigService.h"
#include "MantidKernel/ArrayProperty.h"
#include "MantidNexus/NexusClasses.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include "MantidNexusCPP/NeXusException.hpp"
#include <nexus/NeXusFile.hpp>
#include <nexus/NeXusException.hpp>

#include <Poco/Path.h>
#include <boost/lexical_cast.hpp>
Expand Down
5 changes: 2 additions & 3 deletions Code/Mantid/Framework/DataHandling/src/LoadNXSPE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ Algorithm to load an NXSPE file into a workspace2D. It will create a new instrum
#include "MantidAPI/FileProperty.h"
#include "MantidAPI/LoadAlgorithmFactory.h"

//Copy of the NexusCpp API was placed in MantidNexus
#include "MantidNexusCPP/NeXusFile.hpp"
#include "MantidNexusCPP/NeXusException.hpp"
#include <nexus/NeXusFile.hpp>
#include <nexus/NeXusException.hpp>
#include "MantidNexus/NexusClasses.h"
#include <vector>
#include <map>
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/DataHandling/src/LoadNexusLogs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ If you use [[LoadSNSEventNexus]] or [[LoadISISNexus]], calling this algorithm is
// Includes
//----------------------------------------------------------------------
#include "MantidDataHandling/LoadNexusLogs.h"
#include "MantidNexusCPP/NeXusException.hpp"
#include <nexus/NeXusException.hpp>
#include "MantidKernel/TimeSeriesProperty.h"
#include "MantidKernel/LogParser.h"
#include "MantidAPI/FileProperty.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ The ChildAlgorithms used by LoadMuonNexus are:
#include "MantidKernel/BoundedValidator.h"
#include "MantidNexus/NexusClasses.h"
#include "MantidNexus/NexusFileIO.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include <nexus/NeXusFile.hpp>
#include <boost/shared_ptr.hpp>
#include <cmath>
#include <Poco/DateTimeParser.h>
Expand Down
10 changes: 5 additions & 5 deletions Code/Mantid/Framework/DataHandling/src/LoadTOFRawNexus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The typical meanings of Signal are as follows (note that these may change!):
#include "MantidKernel/ArrayProperty.h"
#include "MantidKernel/BoundedValidator.h"
#include "MantidKernel/cow_ptr.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include <nexus/NeXusFile.hpp>
#include <boost/algorithm/string/detail/classification.hpp>
#include <boost/algorithm/string/split.hpp>

Expand Down Expand Up @@ -277,7 +277,7 @@ void LoadTOFRawNexus::countPixels(const std::string &nexusfilename, const std::s

// Count how many pixels in the bank
file->openData("pixel_id");
std::vector<int> dims = file->getInfo().dims;
std::vector<int64_t> dims = file->getInfo().dims;
file->closeData();

if (!dims.empty())
Expand All @@ -294,11 +294,11 @@ void LoadTOFRawNexus::countPixels(const std::string &nexusfilename, const std::s

// Get the number of pixels from the offsets arrays
file->openData("x_pixel_offset");
std::vector<int> xdim = file->getInfo().dims;
std::vector<int64_t> xdim = file->getInfo().dims;
file->closeData();

file->openData("y_pixel_offset");
std::vector<int> ydim = file->getInfo().dims;
std::vector<int64_t> ydim = file->getInfo().dims;
file->closeData();

if (!xdim.empty() && !ydim.empty())
Expand All @@ -311,7 +311,7 @@ void LoadTOFRawNexus::countPixels(const std::string &nexusfilename, const std::s
{
// Get the size of the X vector
file->openData(m_axisField);
std::vector<int> dims = file->getInfo().dims;
std::vector<int64_t> dims = file->getInfo().dims;
// Find the units, if available
if (file->hasAttr("units"))
file->getAttr("units", m_xUnits);
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/DataHandling/src/NexusTester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ saving and loading rates, in MB per second.
#include "MantidKernel/System.h"
#include "MantidAPI/FileProperty.h"
#include "MantidKernel/ListValidator.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include <nexus/NeXusFile.hpp>
#include <stdlib.h>
#include "MantidKernel/CPUTimer.h"
#include "MantidAPI/Progress.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ off by default.
#include "MantidKernel/ConfigService.h"
#include "MantidKernel/BoundedValidator.h"
#include "MantidNexus/NexusFileIO.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include <nexus/NeXusFile.hpp>
#include <boost/shared_ptr.hpp>
#include <cmath>
#include <Poco/File.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ It is assumed that the positions specified in the raw file are all with respect
#include "MantidAPI/SpectraDetectorMap.h"
#include "MantidGeometry/Instrument.h"
#include "MantidGeometry/Instrument/ComponentHelper.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include "MantidNexusCPP/NeXusException.hpp"
#include <nexus/NeXusFile.hpp>
#include <nexus/NeXusException.hpp>
#include "LoadRaw/isisraw2.h"

#include <boost/scoped_ptr.hpp>
Expand Down

0 comments on commit 1925998

Please sign in to comment.