Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
942cf6a9
Commit
942cf6a9
authored
5 years ago
by
Hahn, Steven
Browse files
Options
Downloads
Patches
Plain Diff
Implment NexusFileLoader class
Signed-off-by:
Steven Hahn
<
hahnse@ornl.gov
>
parent
74ef539d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Framework/DataHandling/inc/MantidDataHandling/NexusFileLoader.h
+3
-1
3 additions, 1 deletion
...ork/DataHandling/inc/MantidDataHandling/NexusFileLoader.h
Framework/DataHandling/src/NexusFileLoader.cpp
+16
-8
16 additions, 8 deletions
Framework/DataHandling/src/NexusFileLoader.cpp
with
19 additions
and
9 deletions
Framework/DataHandling/inc/MantidDataHandling/NexusFileLoader.h
+
3
−
1
View file @
942cf6a9
...
...
@@ -16,12 +16,14 @@ class DLLExport NexusFileLoader
:
public
API
::
IFileLoader
<
Mantid
::
Kernel
::
NexusHDF5Descriptor
>
{
public:
void
exec
()
override
;
virtual
void
execLoader
();
boost
::
shared_ptr
<
Algorithm
>
createChildAlgorithm
(
const
std
::
string
&
name
,
const
double
startProgress
=
-
1.
,
const
double
endProgress
=
-
1.
,
const
bool
enableLogging
=
true
,
const
int
&
version
=
-
1
)
override
;
void
virtual
void
setFileInfo
(
std
::
shared_ptr
<
Mantid
::
Kernel
::
NexusHDF5Descriptor
>
fileInfo
);
private:
std
::
shared_ptr
<
Mantid
::
Kernel
::
NexusHDF5Descriptor
>
m_fileInfo
;
};
...
...
This diff is collapsed.
Click to expand it.
Framework/DataHandling/src/NexusFileLoader.cpp
+
16
−
8
View file @
942cf6a9
...
...
@@ -7,14 +7,22 @@
#include
"MantidDataHandling/NexusFileLoader.h"
namespace
Mantid
::
DataHandling
{
void
NexusFileLoader
::
exec
()
{}
boost
::
shared_ptr
<
Mantid
::
API
::
Algorithm
>
NexusFileLoader
::
createChildAlgorithm
(
const
std
::
string
&
name
,
const
double
startProgress
,
const
double
endProgress
,
const
bool
enableLogging
,
const
int
&
version
)
{
return
nullptr
;
void
NexusFileLoader
::
exec
()
{
execLoader
();
}
void
NexusFileLoader
::
execLoader
()
{}
boost
::
shared_ptr
<
Mantid
::
API
::
Algorithm
>
NexusFileLoader
::
createChildAlgorithm
(
const
std
::
string
&
name
,
const
double
startProgress
,
const
double
endProgress
,
const
bool
enableLogging
,
const
int
&
version
)
{
auto
child
=
API
::
IFileLoader
<
Mantid
::
Kernel
::
NexusHDF5Descriptor
>::
createChildAlgorithm
(
name
,
startProgress
,
endProgress
,
enableLogging
,
version
);
auto
nfl
=
boost
::
dynamic_pointer_cast
<
NexusFileLoader
>
(
child
);
if
(
nfl
)
{
nfl
->
setFileInfo
(
m_fileInfo
);
}
return
child
;
}
void
NexusFileLoader
::
setFileInfo
(
std
::
shared_ptr
<
Mantid
::
Kernel
::
NexusHDF5Descriptor
>
fileInfo
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment