2012-08-07 03:18:48 -04:00
|
|
|
/*
|
|
|
|
* Created by Phil on 7/8/2012.
|
|
|
|
* Copyright 2011 Two Blue Cubes Ltd. All rights reserved.
|
|
|
|
*
|
|
|
|
* Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
*/
|
|
|
|
#ifndef TWOBLUECUBES_CATCH_INTERFACES_GENERATORS_H_INCLUDED
|
|
|
|
#define TWOBLUECUBES_CATCH_INTERFACES_GENERATORS_H_INCLUDED
|
2012-08-07 03:18:33 -04:00
|
|
|
|
2012-08-07 03:18:48 -04:00
|
|
|
#include <string>
|
2012-08-07 03:18:33 -04:00
|
|
|
|
2012-08-07 03:18:48 -04:00
|
|
|
namespace Catch {
|
2012-08-07 03:18:33 -04:00
|
|
|
|
2012-08-07 03:18:48 -04:00
|
|
|
struct IGeneratorInfo {
|
2012-08-13 02:46:10 -04:00
|
|
|
virtual ~IGeneratorInfo();
|
2012-08-07 03:18:48 -04:00
|
|
|
virtual bool moveNext() = 0;
|
|
|
|
virtual std::size_t getCurrentIndex() const = 0;
|
|
|
|
};
|
2013-07-03 14:14:59 -04:00
|
|
|
|
2012-08-07 03:18:48 -04:00
|
|
|
struct IGeneratorsForTest {
|
2012-08-13 02:46:10 -04:00
|
|
|
virtual ~IGeneratorsForTest();
|
2012-08-07 03:18:33 -04:00
|
|
|
|
2013-04-23 13:58:56 -04:00
|
|
|
virtual IGeneratorInfo& getGeneratorInfo( std::string const& fileInfo, std::size_t size ) = 0;
|
2012-08-07 03:18:48 -04:00
|
|
|
virtual bool moveNext() = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
IGeneratorsForTest* createGeneratorsForTest();
|
|
|
|
|
|
|
|
} // end namespace Catch
|
|
|
|
|
|
|
|
#endif // TWOBLUECUBES_CATCH_INTERFACES_GENERATORS_H_INCLUDED
|