2015-04-16 16:55:32 +00:00
|
|
|
|
|
|
|
#ifndef EXAMPLE_ENTRIES_H
|
|
|
|
#define EXAMPLE_ENTRIES_H
|
|
|
|
|
2015-04-29 20:33:26 +00:00
|
|
|
#include "../CommonInterfaces/CommonExampleInterface.h"
|
2015-04-16 16:55:32 +00:00
|
|
|
|
2016-05-04 06:34:48 +00:00
|
|
|
class ExampleEntriesAll : public ExampleEntries
|
2015-04-16 16:55:32 +00:00
|
|
|
{
|
|
|
|
struct ExampleEntriesInternalData* m_data;
|
|
|
|
|
|
|
|
public:
|
2016-05-04 06:34:48 +00:00
|
|
|
ExampleEntriesAll();
|
|
|
|
virtual ~ExampleEntriesAll();
|
2015-04-16 16:55:32 +00:00
|
|
|
|
2018-09-23 21:17:31 +00:00
|
|
|
static void registerExampleEntry(int menuLevel, const char* name, const char* description, CommonExampleInterface::CreateFunc* createFunc, int option = 0);
|
|
|
|
|
2016-05-04 06:34:48 +00:00
|
|
|
virtual void initExampleEntries();
|
2015-05-01 18:42:14 +00:00
|
|
|
|
2016-05-04 06:34:48 +00:00
|
|
|
virtual void initOpenCLExampleEntries();
|
2018-09-23 21:17:31 +00:00
|
|
|
|
2016-05-04 06:34:48 +00:00
|
|
|
virtual int getNumRegisteredExamples();
|
2015-04-16 16:55:32 +00:00
|
|
|
|
2016-05-04 06:34:48 +00:00
|
|
|
virtual CommonExampleInterface::CreateFunc* getExampleCreateFunc(int index);
|
2015-04-16 16:55:32 +00:00
|
|
|
|
2016-05-04 06:34:48 +00:00
|
|
|
virtual const char* getExampleName(int index);
|
2015-04-16 16:55:32 +00:00
|
|
|
|
2018-09-23 21:17:31 +00:00
|
|
|
virtual const char* getExampleDescription(int index);
|
2015-04-16 16:55:32 +00:00
|
|
|
|
2018-09-23 21:17:31 +00:00
|
|
|
virtual int getExampleOption(int index);
|
2015-04-16 16:55:32 +00:00
|
|
|
};
|
|
|
|
|
2018-09-23 21:17:31 +00:00
|
|
|
#endif //EXAMPLE_ENTRIES_H
|