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
d6adafd7
Commit
d6adafd7
authored
14 years ago
by
Gigg, Martyn Anthony
Browse files
Options
Downloads
Patches
Plain Diff
Fix for static const initialization on windows? Re #2329
parent
4ff7a569
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Mantid/Framework/API/inc/MantidAPI/IDataFileChecker.h
+2
-3
2 additions, 3 deletions
Code/Mantid/Framework/API/inc/MantidAPI/IDataFileChecker.h
with
2 additions
and
3 deletions
Code/Mantid/Framework/API/inc/MantidAPI/IDataFileChecker.h
+
2
−
3
View file @
d6adafd7
...
@@ -45,13 +45,13 @@ namespace Mantid
...
@@ -45,13 +45,13 @@ namespace Mantid
/// virtual destructor
/// virtual destructor
virtual
~
IDataFileChecker
();
virtual
~
IDataFileChecker
();
protected:
/// Magic signature identifying a HDF5 file.
/// Magic signature identifying a HDF5 file.
static
unsigned
char
const
g_hdf5_signature
[
8
];
static
unsigned
char
const
g_hdf5_signature
[
8
];
/// Magic HDF5 cookie that is stored in the first 4 bytes of the file.
/// Magic HDF5 cookie that is stored in the first 4 bytes of the file.
static
uint32_t
const
g_hdf5_cookie
;
static
uint32_t
const
g_hdf5_cookie
;
/// The default number of bytes of the header to check
/// The default number of bytes of the header to check
enum
{
g_hdr_bytes
=
100
};
enum
{
g_hdr_bytes
=
100
};
/// A union representing the first g_hdr_bytes of a file
/// A union representing the first g_hdr_bytes of a file
union
file_header
union
file_header
{
{
...
@@ -61,7 +61,6 @@ namespace Mantid
...
@@ -61,7 +61,6 @@ namespace Mantid
unsigned
char
full_hdr
[
g_hdr_bytes
+
1
];
unsigned
char
full_hdr
[
g_hdr_bytes
+
1
];
};
};
public
:
/// quick file check by reading first g_bufferSize bytes of the file or by checking the extension
/// quick file check by reading first g_bufferSize bytes of the file or by checking the extension
virtual
bool
quickFileCheck
(
const
std
::
string
&
filePath
,
size_t
nread
,
const
file_header
&
header
)
=
0
;
virtual
bool
quickFileCheck
(
const
std
::
string
&
filePath
,
size_t
nread
,
const
file_header
&
header
)
=
0
;
/// file check by looking at the structure of the data file
/// file check by looking at the structure of the data file
...
@@ -72,7 +71,7 @@ namespace Mantid
...
@@ -72,7 +71,7 @@ namespace Mantid
/// Typedef for a shared pointer
/// Typedef for a shared pointer
typedef
boost
::
shared_ptr
<
IDataFileChecker
>
IDataFileChecker_sptr
;
typedef
boost
::
shared_ptr
<
IDataFileChecker
>
IDataFileChecker_sptr
;
}
}
}
}
#endif
#endif
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