2012-08-07 09:18:48 +02: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 09:18:33 +02:00
|
|
|
|
2012-08-07 09:18:48 +02:00
|
|
|
#include <string>
|
2012-08-07 09:18:33 +02:00
|
|
|
|
2012-08-07 09:18:48 +02:00
|
|
|
namespace Catch {
|
2012-08-07 09:18:33 +02:00
|
|
|
|
2012-08-07 09:18:48 +02:00
|
|
|
struct IGeneratorInfo {
|
2012-08-13 08:46:10 +02:00
|
|
|
virtual ~IGeneratorInfo();
|
2012-08-07 09:18:48 +02:00
|
|
|
virtual bool moveNext() = 0;
|
|
|
|
virtual std::size_t getCurrentIndex() const = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct IGeneratorsForTest {
|
2012-08-13 08:46:10 +02:00
|
|
|
virtual ~IGeneratorsForTest();
|
2012-08-07 09:18:33 +02:00
|
|
|
|
2013-04-23 19:58:56 +02:00
|
|
|
virtual IGeneratorInfo& getGeneratorInfo( std::string const& fileInfo, std::size_t size ) = 0;
|
2012-08-07 09:18:48 +02:00
|
|
|
virtual bool moveNext() = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
IGeneratorsForTest* createGeneratorsForTest();
|
|
|
|
|
|
|
|
} // end namespace Catch
|
|
|
|
|
|
|
|
#endif // TWOBLUECUBES_CATCH_INTERFACES_GENERATORS_H_INCLUDED
|