cocos2d-x  3.1rc0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GUIReader Class Reference

#include <CCSGUIReader.h>

Inheritance diagram for GUIReader:
Ref

Public Member Functions

cocos2d::ui::WidgetwidgetFromJsonFile (const char *fileName)
int getVersionInteger (const char *str)
void storeFileDesignSize (const char *fileName, const cocos2d::Size &size)
const cocos2d::Size getFileDesignSize (const char *fileName) const
const std::string & getFilePath () const
void registerTypeAndCallBack (const std::string &classType, ObjectFactory::Instance ins, Ref *object, SEL_ParseEvent callBack)
ParseCallBackMap getParseCallBackMap ()
ParseObjectMap getParseObjectMap ()
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
Refautorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()

Static Public Member Functions

static CC_DEPRECATED_ATTRIBUTE
GUIReader
shareReader ()
static CC_DEPRECATED_ATTRIBUTE void purgeGUIReader ()
static GUIReadergetInstance ()
static void destroyInstance ()

Protected Types

typedef std::map< std::string,
SEL_ParseEvent
ParseCallBackMap
typedef std::map< std::string,
Ref * > 
ParseObjectMap

Protected Member Functions

 GUIReader ()
 ~GUIReader ()
- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 

Protected Attributes

std::string m_strFilePath
cocos2d::ValueMap _fileDesignSizes
ParseCallBackMap _mapParseSelector
ParseObjectMap _mapObject
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 

Member Typedef Documentation

typedef std::map<std::string,
SEL_ParseEvent>
ParseCallBackMap
protected
typedef std::map<std::string,
Ref*> ParseObjectMap
protected

Constructor & Destructor Documentation

GUIReader ( )
protected
~GUIReader ( )
protected

Member Function Documentation

static void destroyInstance ( )
static
const cocos2d::Size
getFileDesignSize
( const char *  fileName) const
const std::string& getFilePath ( ) const
inline
static GUIReader* getInstance ( )
static
ParseCallBackMap
getParseCallBackMap
( )
inline
ParseObjectMap getParseObjectMap ( )
inline
int getVersionInteger ( const char *  str)
static CC_DEPRECATED_ATTRIBUTE
void purgeGUIReader
( )
inlinestatic
void registerTypeAndCallBack ( const std::string &  classType,
ObjectFactory::Instance  ins,
Ref object,
SEL_ParseEvent  callBack 
)
static CC_DEPRECATED_ATTRIBUTE
GUIReader* shareReader
( )
inlinestatic
void storeFileDesignSize ( const char *  fileName,
const cocos2d::Size size 
)
cocos2d::ui::Widget*
widgetFromJsonFile
( const char *  fileName)

Member Data Documentation

cocos2d::ValueMap _fileDesignSizes
protected
ParseObjectMap _mapObject
protected
ParseCallBackMap _mapParseSelector
protected
std::string m_strFilePath
protected

The documentation for this class was generated from the following file: