2015-04-17 18:26:47 +08:00
|
|
|
//
|
|
|
|
// RuntimeProtocol.h
|
|
|
|
// Simulator
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef __Simulator__RuntimeProtocol__
|
|
|
|
#define __Simulator__RuntimeProtocol__
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include "json/document.h"
|
2015-11-25 21:52:44 +08:00
|
|
|
#include "SimulatorExport.h"
|
2015-04-17 18:26:47 +08:00
|
|
|
|
2015-11-25 21:52:44 +08:00
|
|
|
class CC_LIBSIM_DLL RuntimeProtocol
|
2015-04-17 18:26:47 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void end();
|
|
|
|
|
|
|
|
void setProjectPath(const std::string& path);
|
|
|
|
std::string getProjectPath() const;
|
|
|
|
virtual void startScript(const std::string& file);
|
|
|
|
|
|
|
|
virtual void onStartDebuger(const rapidjson::Document& dArgParse, rapidjson::Document& dReplyParse);
|
|
|
|
virtual void onClearCompile(const rapidjson::Document& dArgParse, rapidjson::Document& dReplyParse);
|
|
|
|
virtual void onPrecompile(const rapidjson::Document& dArgParse, rapidjson::Document& dReplyParse);
|
|
|
|
virtual void onReload(const rapidjson::Document& dArgParse, rapidjson::Document& dReplyParse);
|
|
|
|
virtual void onRemove(const std::string &filename);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
std::string _projectPath;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* defined(__Simulator__RuntimeBase__) */
|