2013-05-10 15:07:05 +08:00
|
|
|
#ifndef __DATAVISITOR_TEST_H__
|
|
|
|
#define __DATAVISITOR_TEST_H__
|
|
|
|
|
|
|
|
#include "../testBasic.h"
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2013-06-20 14:17:10 +08:00
|
|
|
class PrettyPrinterDemo : public Layer
|
2013-05-10 15:07:05 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
|
|
|
virtual void onEnter();
|
|
|
|
void addSprite();
|
|
|
|
protected:
|
2013-06-15 14:03:30 +08:00
|
|
|
std::string _title;
|
2013-05-10 15:07:05 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class DataVisitorTestScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void runThisTest();
|
|
|
|
|
|
|
|
CREATE_FUNC(DataVisitorTestScene);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __DATAVISITOR_TEST_H__
|