Mantid
Loading...
Searching...
No Matches
Namespaces | Typedefs | Functions
FileComparisonHelper.h File Reference
#include <iosfwd>
#include <iterator>
#include <string>

Go to the source code of this file.

Namespaces

namespace  FileComparisonHelper
 

Typedefs

using FileComparisonHelper::streamCharIter = std::istreambuf_iterator< char >
 FileComparisonHelper provides several helper functions to compare files or file-streams within unit tests. More...
 

Functions

bool FileComparisonHelper::areFilesEqual (const std::string &referenceFileFullPath, const std::string &outFileFullPath)
 Checks if two files are equal in content and length at the specified path. More...
 
bool FileComparisonHelper::areFileStreamsEqual (std::ifstream &referenceFileStream, std::ifstream &fileToCheck)
 Checks if two file streams are equal in content and length. More...
 
bool FileComparisonHelper::areIteratorsEqual (streamCharIter refStream, streamCharIter testStream, streamCharIter refStreamEnd=streamCharIter(), streamCharIter testStreamEnd=streamCharIter())
 Compares the length and content of std::streams iterators and returns if they are equal. More...
 
bool FileComparisonHelper::isEqualToReferenceFile (const std::string &referenceFileName, const std::string &outFileFullPath)
 Attempts to find a reference file with the given name using Mantid then compares content and length of files (ignoring EOL differences). More...