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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ExampleEntries
|
|
|
|
{
|
|
|
|
|
|
|
|
struct ExampleEntriesInternalData* m_data;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
ExampleEntries();
|
|
|
|
virtual ~ExampleEntries();
|
|
|
|
|
2015-04-29 20:33:26 +00:00
|
|
|
static void registerExampleEntry(int menuLevel, const char* name,const char* description, CommonExampleInterface::CreateFunc* createFunc, int option=0);
|
2015-04-16 16:55:32 +00:00
|
|
|
|
|
|
|
void initExampleEntries();
|
|
|
|
|
|
|
|
int getNumRegisteredExamples();
|
|
|
|
|
2015-04-29 20:33:26 +00:00
|
|
|
CommonExampleInterface::CreateFunc* getExampleCreateFunc(int index);
|
2015-04-16 16:55:32 +00:00
|
|
|
|
|
|
|
const char* getExampleName(int index);
|
2015-04-28 01:35:07 +00:00
|
|
|
|
|
|
|
const char* getExampleDescription(int index);
|
2015-04-16 16:55:32 +00:00
|
|
|
|
|
|
|
int getExampleOption(int index);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif //EXAMPLE_ENTRIES_H
|