Set macro CC_DEPRECATED_ATTRIBUTE for method purge() for all Reader.

This commit is contained in:
pipu 2015-03-31 14:21:10 +08:00
parent 71fd476355
commit 91acd6aea9
29 changed files with 56 additions and 5 deletions

View File

@ -214,10 +214,6 @@ CSLoader::CSLoader()
CREATE_CLASS_NODE_READER_INFO(Particle3DReader); CREATE_CLASS_NODE_READER_INFO(Particle3DReader);
} }
void CSLoader::purge()
{
}
void CSLoader::destroyCocosStudio() void CSLoader::destroyCocosStudio()
{ {
NodeReader::destroyInstance(); NodeReader::destroyInstance();

View File

@ -72,7 +72,8 @@ public:
static void destroyInstance(); static void destroyInstance();
CSLoader(); CSLoader();
void purge(); /** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE void purge();
static void destroyCocosStudio(); static void destroyCocosStudio();

View File

@ -91,6 +91,8 @@ class CC_STUDIO_DLL FlatBuffersSerialize
public: public:
static FlatBuffersSerialize* getInstance(); static FlatBuffersSerialize* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
FlatBuffersSerialize(); FlatBuffersSerialize();

View File

@ -50,6 +50,8 @@ public:
~ArmatureNodeReader(); ~ArmatureNodeReader();
static ArmatureNodeReader* getInstance(); static ArmatureNodeReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData, flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,

View File

@ -39,6 +39,8 @@ namespace cocostudio
virtual ~ButtonReader(); virtual ~ButtonReader();
static ButtonReader* getInstance(); static ButtonReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget,

View File

@ -39,6 +39,8 @@ namespace cocostudio
virtual ~CheckBoxReader(); virtual ~CheckBoxReader();
static CheckBoxReader* getInstance(); static CheckBoxReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);

View File

@ -40,6 +40,8 @@ namespace cocostudio
~ComAudioReader(); ~ComAudioReader();
static ComAudioReader* getInstance(); static ComAudioReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData, flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,

View File

@ -42,6 +42,8 @@ namespace cocostudio
~GameMapReader(); ~GameMapReader();
static GameMapReader* getInstance(); static GameMapReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData, flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,

View File

@ -41,6 +41,8 @@ namespace cocostudio
virtual ~ImageViewReader(); virtual ~ImageViewReader();
static ImageViewReader* getInstance(); static ImageViewReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);

View File

@ -40,6 +40,8 @@ namespace cocostudio
virtual ~LayoutReader(); virtual ~LayoutReader();
static LayoutReader* getInstance(); static LayoutReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);

View File

@ -39,6 +39,8 @@ namespace cocostudio
virtual ~ListViewReader(); virtual ~ListViewReader();
static ListViewReader* getInstance(); static ListViewReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);

View File

@ -39,6 +39,8 @@ namespace cocostudio
virtual ~LoadingBarReader(); virtual ~LoadingBarReader();
static LoadingBarReader* getInstance(); static LoadingBarReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);

View File

@ -46,6 +46,8 @@ namespace cocostudio
~Node3DReader(); ~Node3DReader();
static Node3DReader* getInstance(); static Node3DReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData, flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,

View File

@ -41,6 +41,8 @@ namespace cocostudio
~NodeReader(); ~NodeReader();
static NodeReader* getInstance(); static NodeReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData, flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,

View File

@ -39,6 +39,8 @@ namespace cocostudio
virtual ~PageViewReader(); virtual ~PageViewReader();
static PageViewReader* getInstance(); static PageViewReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);

View File

@ -41,6 +41,8 @@ namespace cocostudio
~Particle3DReader(); ~Particle3DReader();
static Particle3DReader* getInstance(); static Particle3DReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData, flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,

View File

@ -42,6 +42,8 @@ namespace cocostudio
~ParticleReader(); ~ParticleReader();
static ParticleReader* getInstance(); static ParticleReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData, flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,

View File

@ -40,6 +40,8 @@ namespace cocostudio
~ProjectNodeReader(); ~ProjectNodeReader();
static ProjectNodeReader* getInstance(); static ProjectNodeReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData, flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,

View File

@ -39,6 +39,8 @@ namespace cocostudio
virtual ~ScrollViewReader(); virtual ~ScrollViewReader();
static ScrollViewReader* getInstance(); static ScrollViewReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);

View File

@ -42,6 +42,8 @@ namespace cocostudio
~SingleNodeReader(); ~SingleNodeReader();
static SingleNodeReader* getInstance(); static SingleNodeReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData, flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,

View File

@ -39,6 +39,8 @@ namespace cocostudio
virtual ~SliderReader(); virtual ~SliderReader();
static SliderReader* getInstance(); static SliderReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);

View File

@ -46,6 +46,8 @@ namespace cocostudio
~Sprite3DReader(); ~Sprite3DReader();
static Sprite3DReader* getInstance(); static Sprite3DReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData, flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,

View File

@ -42,6 +42,8 @@ namespace cocostudio
~SpriteReader(); ~SpriteReader();
static SpriteReader* getInstance(); static SpriteReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData, flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,

View File

@ -39,6 +39,8 @@ namespace cocostudio
virtual ~TextAtlasReader(); virtual ~TextAtlasReader();
static TextAtlasReader* getInstance(); static TextAtlasReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);

View File

@ -39,6 +39,8 @@ namespace cocostudio
virtual ~TextBMFontReader(); virtual ~TextBMFontReader();
static TextBMFontReader* getInstance(); static TextBMFontReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);

View File

@ -39,6 +39,8 @@ namespace cocostudio
virtual ~TextFieldReader(); virtual ~TextFieldReader();
static TextFieldReader* getInstance(); static TextFieldReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);

View File

@ -39,6 +39,8 @@ namespace cocostudio
virtual ~TextReader(); virtual ~TextReader();
static TextReader* getInstance(); static TextReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options);

View File

@ -46,6 +46,8 @@ namespace cocostudio
~UserCameraReader(); ~UserCameraReader();
static UserCameraReader* getInstance(); static UserCameraReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData, flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(const tinyxml2::XMLElement* objectData,

View File

@ -46,6 +46,8 @@ namespace cocostudio
virtual ~WidgetReader(); virtual ~WidgetReader();
static WidgetReader* getInstance(); static WidgetReader* getInstance();
/** @deprecated Use method destroyInstance() instead */
CC_DEPRECATED_ATTRIBUTE static void purge();
static void destroyInstance(); static void destroyInstance();
virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget,