axmol/samples/Cpp/TestCpp/Classes/FileUtilsTest/FileUtilsTest.h

77 lines
1.6 KiB
C
Raw Normal View History

2013-01-28 15:17:20 +08:00
#ifndef __FILEUTILSTEST_H__
#define __FILEUTILSTEST_H__
#include "../testBasic.h"
USING_NS_CC;
using namespace std;
class FileUtilsTestScene : public TestScene
{
public:
virtual void runThisTest();
};
class FileUtilsDemo : public CCLayer
{
public:
virtual void onEnter();
virtual string title();
virtual string subtitle();
void backCallback(CCObject* pSender);
void nextCallback(CCObject* pSender);
void restartCallback(CCObject* pSender);
};
class TestResolutionDirectories : public FileUtilsDemo
{
public:
virtual void onEnter();
virtual void onExit();
virtual string title();
virtual string subtitle();
private:
vector<string> m_defaultSearchPathArray;
vector<string> m_defaultResolutionsOrderArray;
};
class TestSearchPath : public FileUtilsDemo
{
public:
virtual void onEnter();
virtual void onExit();
virtual string title();
virtual string subtitle();
private:
vector<string> m_defaultSearchPathArray;
vector<string> m_defaultResolutionsOrderArray;
};
class TestFilenameLookup : public FileUtilsDemo
{
public:
virtual void onEnter();
virtual void onExit();
virtual string title();
virtual string subtitle();
};
class TestIsFileExist : public FileUtilsDemo
{
public:
virtual void onEnter();
virtual void onExit();
virtual string title();
virtual string subtitle();
};
2013-01-28 15:17:20 +08:00
class TextWritePlist : public FileUtilsDemo
{
public:
virtual void onEnter();
virtual void onExit();
virtual string title();
virtual string subtitle();
};
2013-01-28 15:17:20 +08:00
#endif /* __FILEUTILSTEST_H__ */