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);
}
void CSLoader::purge()
{
}
void CSLoader::destroyCocosStudio()
{
NodeReader::destroyInstance();

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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