Skip to content

Commit

Permalink
Refs #4024 progress towards removing C++ nexus API
Browse files Browse the repository at this point in the history
  • Loading branch information
Janik Zikovsky committed Oct 27, 2011
1 parent eaa915a commit 33b40c2
Show file tree
Hide file tree
Showing 61 changed files with 79 additions and 3,275 deletions.
1 change: 0 additions & 1 deletion Code/Mantid/Build/CMake/CommonVatesSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ Framework/DataHandling
Framework/MDEvents
Framework/MDAlgorithms
Framework/Nexus
Framework/NexusCPP
)

set ( COMMONVATES_SETUP_DONE TRUE )
1 change: 0 additions & 1 deletion Code/Mantid/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ add_subdirectory ( Framework )
include_directories ( Framework/Kernel/inc )
include_directories ( Framework/Geometry/inc )
include_directories ( Framework/API/inc )
include_directories ( Framework/NexusCPP/inc )
set ( CORE_MANTIDLIBS Kernel Geometry API )

add_subdirectory ( MantidQt )
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/API/inc/MantidAPI/MatrixWorkspace.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <set>
#include "MantidAPI/ISpectrum.h"
#include "MantidKernel/DateAndTime.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/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 @@ -7,7 +7,7 @@
#include "MantidKernel/TimeSplitter.h"
#include <vector>
#include "MantidKernel/Matrix.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include "nexus/NeXusFile.hpp"


namespace Mantid
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/API/src/MatrixWorkspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <numeric>
#include "MantidAPI/NumericAxis.h"
#include "MantidKernel/DateAndTime.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include "nexus/NeXusFile.hpp"

using Mantid::Kernel::DateAndTime;
using Mantid::Kernel::TimeSeriesProperty;
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 "MantidKernel/System.h"
#include "MantidNexusCPP/NeXusException.hpp"
#include "MantidNexusCPP/NeXusFile.hpp"
#include "nexus/NeXusException.hpp"
#include "nexus/NeXusFile.hpp"
#include "MantidKernel/DateAndTime.h"
#include "MantidKernel/TimeSeriesProperty.h"
#include "MantidKernel/PropertyWithValue.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 @@ -7,7 +7,7 @@
#include "MantidGeometry/IComponent.h"
#include "MantidGeometry/Crystal/OrientedLattice.h"
#include "MantidGeometry/Objects/ShapeFactory.h"
#include "MantidNexusCPP/NeXusException.hpp"
#include "nexus/NeXusException.hpp"

using namespace Mantid::Kernel;
using Mantid::Geometry::ShapeFactory;
Expand Down
8 changes: 2 additions & 6 deletions Code/Mantid/Framework/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,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 @@ -154,8 +150,8 @@ add_subdirectory (MDEvents)
###########################################################################

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

add_custom_target( Framework DEPENDS ${FRAMEWORK_LIBS} )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#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 @@ -11,8 +11,8 @@
#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"

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 @@ -5,8 +5,8 @@
#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 @@ -2,7 +2,7 @@
#define MANTID_DATAHANDLING_PRECOMPILEDHEADER_H_

#include "MantidAPI/Algorithm.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include "MantidNexusCPP/NeXusException.hpp"
#include "nexus/NeXusFile.hpp"
#include "nexus/NeXusException.hpp"

#endif // MANTID_DATAHANDLING_PRECOMPILEDHEADER_H_
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#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 @@ -14,8 +14,8 @@
#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
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 @@ -12,8 +12,8 @@
#include "MantidGeometry/Instrument/XMLlogfile.h"
#include "MantidGeometry/Instrument/Detector.h"

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

#include "MantidAPI/LoadAlgorithmFactory.h"
#include <Poco/Path.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 @@ -60,8 +60,8 @@ The subalgorithms used by LoadMuonNexus are:
#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 @@ -12,8 +12,8 @@
#include "MantidAPI/Progress.h"
#include "MantidAPI/SpectraDetectorMap.h"
#include "MantidNexus/NexusClasses.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include "MantidNexusCPP/NeXusException.hpp"
#include "nexus/NeXusFile.hpp"
#include "nexus/NeXusException.hpp"


#include "MantidAPI/LoadAlgorithmFactory.h"
Expand Down
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/DataHandling/src/LoadNXSPE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Algorithm to load an NXSPE file into a workspace2D. It will create a new instrum
#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 @@ -48,7 +48,7 @@ The subalgorithms used by LoadMuonNexus are:
#include "MantidKernel/UnitFactory.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
6 changes: 3 additions & 3 deletions Code/Mantid/Framework/DataHandling/src/LoadTOFRawNexus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#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 @@ -235,7 +235,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();

size_t newPixels = 1;
Expand All @@ -251,7 +251,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
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ None
#include "MantidKernel/ArrayProperty.h"
#include "MantidKernel/ConfigService.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 @@ -16,8 +16,8 @@ It is assumed that the positions specified in the raw file are all with respect
#include "MantidAPI/MatrixWorkspace.h"
#include "MantidAPI/SpectraDetectorMap.h"
#include "LoadRaw/isisraw2.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include "MantidNexusCPP/NeXusException.hpp"
#include "nexus/NeXusFile.hpp"
#include "nexus/NeXusException.hpp"
#include <boost/scoped_ptr.hpp>

namespace Mantid
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef MANTID_GEOMETRY_ORIENTEDLATTICE_H_
#define MANTID_GEOMETRY_ORIENTEDLATTICE_H_
#include <MantidGeometry/Crystal/UnitCell.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 @@ -5,7 +5,7 @@
#include <MantidKernel/V3D.h>
#include <MantidGeometry/Crystal/UnitCell.h> //for angle units
#include <string>
#include "MantidNexusCPP/NeXusFile.hpp"
#include "nexus/NeXusFile.hpp"

namespace Mantid
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include <vector>
#include <typeinfo>
#include "MantidNexusCPP/NeXusFile.hpp"
#include "nexus/NeXusFile.hpp"

namespace Mantid
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "MantidKernel/NeutronAtom.h"
#include "MantidKernel/PhysicalConstants.h"
#include <boost/shared_ptr.hpp>
#include "MantidNexusCPP/NeXusFile.hpp"
#include "nexus/NeXusFile.hpp"


namespace Mantid
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/Geometry/test/ComponentParserTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "MantidKernel/CPUTimer.h"
#include "MantidKernel/Strings.h"
#include <Poco/SAX/AttributesImpl.h>
#include "MantidNexusCPP/NeXusFile.hpp"
#include "nexus/NeXusFile.hpp"

using namespace Mantid;
using namespace Mantid::Kernel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define MANTID_NEXUSCPP_NEXUSTESTHELPER_H_

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


namespace Mantid
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/Kernel/inc/MantidKernel/V3D.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <vector>
#include "MantidKernel/DllConfig.h"
#include "MantidKernel/Matrix.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 @@ -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/MDEvents/inc/MantidMDEvents/IMDBox.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "MantidAPI/CoordTransform.h"
#include "MantidMDEvents/MDBin.h"
#include "MantidMDEvents/MDLeanEvent.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include "nexus/NeXusFile.hpp"
#include <iosfwd>
#include "MantidKernel/VMD.h"

Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/MDEvents/inc/MantidMDEvents/LoadMD.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "MantidAPI/IMDEventWorkspace.h"
#include "MantidKernel/System.h"
#include "MantidMDEvents/MDEventWorkspace.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include "nexus/NeXusFile.hpp"
#include "MantidAPI/IDataFileChecker.h"

namespace Mantid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "MantidGeometry/MDGeometry/MDTypes.h"
#include "MantidKernel/System.h"
#include "MantidMDEvents/MDLeanEvent.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include "nexus/NeXusFile.hpp"
#include <cmath>
#include <numeric>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "MantidMDEvents/IMDBox.h"
#include "MantidMDEvents/MDBox.h"
#include "MantidMDEvents/MDLeanEvent.h"
#include "MantidNexusCPP/NeXusFile.hpp"
#include "nexus/NeXusFile.hpp"

namespace Mantid
{
Expand Down

0 comments on commit 33b40c2

Please sign in to comment.