19#pragma warning(push, 0)
21#include "MantidNexus/NexusFile.h"
50 filename = (Mantid::Kernel::ConfigService::Instance().getString(
"defaultsave.directory") + barefilename);
54 file->makeGroup(
"test_entry",
"NXentry",
true);
61 throw std::runtime_error(
"NexusTestHelper: you must call createFile() before reopenFile().");
64 file->openGroup(
"test_entry",
"NXentry");
void reopenFile()
Close the newly created file and re-open it for reading back.
bool deleteFile
Do you delete when finished?
virtual ~NexusTestHelper()
Destructor.
NexusTestHelper(bool deleteFile=true)
structor.
std::unique_ptr< Mantid::Nexus::File > file
Nexus file handle.
void createFile(const std::string &barefilename)
Creates a NXS file with an entry, for use in a test.
std::string filename
Created filename (full path)