-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MD tests pass thank god with latest nexus version
- Loading branch information
Janik Zikovsky
committed
Nov 17, 2011
1 parent
95a82a3
commit 619fa5d
Showing
5 changed files
with
121 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
Code/Mantid/Framework/Kernel/inc/MantidKernel/WriteBuffer.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#ifndef MANTID_KERNEL_WRITEBUFFER_H_ | ||
#define MANTID_KERNEL_WRITEBUFFER_H_ | ||
|
||
#include "MantidKernel/System.h" | ||
|
||
|
||
namespace Mantid | ||
{ | ||
namespace Kernel | ||
{ | ||
|
||
/** Replacement of the DiskMRU class that holds | ||
a "to-write" buffer and a list of free space blocks | ||
in the file to write. | ||
For use in file-backed MDEventWorkspaces. | ||
@date 2011-11-17 | ||
Copyright © 2011 ISIS Rutherford Appleton Laboratory & NScD Oak Ridge National Laboratory | ||
This file is part of Mantid. | ||
Mantid is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 3 of the License, or | ||
(at your option) any later version. | ||
Mantid is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
File change history is stored at: <https://svn.mantidproject.org/mantid/trunk/Code/Mantid> | ||
Code Documentation is available at: <http://doxygen.mantidproject.org> | ||
*/ | ||
class DLLExport WriteBuffer | ||
{ | ||
public: | ||
WriteBuffer(); | ||
virtual ~WriteBuffer(); | ||
|
||
}; | ||
|
||
|
||
} // namespace Kernel | ||
} // namespace Mantid | ||
|
||
#endif /* MANTID_KERNEL_WRITEBUFFER_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#include "MantidKernel/WriteBuffer.h" | ||
#include "MantidKernel/System.h" | ||
|
||
using namespace Mantid::Kernel; | ||
|
||
namespace Mantid | ||
{ | ||
namespace Kernel | ||
{ | ||
|
||
|
||
//---------------------------------------------------------------------------------------------- | ||
/** Constructor | ||
*/ | ||
WriteBuffer::WriteBuffer() | ||
{ | ||
} | ||
|
||
//---------------------------------------------------------------------------------------------- | ||
/** Destructor | ||
*/ | ||
WriteBuffer::~WriteBuffer() | ||
{ | ||
} | ||
|
||
|
||
|
||
} // namespace Mantid | ||
} // namespace Kernel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#ifndef MANTID_KERNEL_WRITEBUFFERTEST_H_ | ||
#define MANTID_KERNEL_WRITEBUFFERTEST_H_ | ||
|
||
#include <cxxtest/TestSuite.h> | ||
#include "MantidKernel/Timer.h" | ||
#include "MantidKernel/System.h" | ||
#include <iostream> | ||
#include <iomanip> | ||
|
||
#include "MantidKernel/WriteBuffer.h" | ||
|
||
using namespace Mantid; | ||
using namespace Mantid::Kernel; | ||
|
||
class WriteBufferTest : public CxxTest::TestSuite | ||
{ | ||
public: | ||
// This pair of boilerplate methods prevent the suite being created statically | ||
// This means the constructor isn't called when running other tests | ||
static WriteBufferTest *createSuite() { return new WriteBufferTest(); } | ||
static void destroySuite( WriteBufferTest *suite ) { delete suite; } | ||
|
||
|
||
void test_Something() | ||
{ | ||
} | ||
|
||
|
||
}; | ||
|
||
|
||
#endif /* MANTID_KERNEL_WRITEBUFFERTEST_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters