cocos2d-x  3.3
 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)
 
cocos2d::ui::WidgetwidgetFromBinaryFile (const char *fileName)
 
int getVersionInteger (const char *str)
 
void storeFileDesignSize (const char *fileName, const cocos2d::Size &size)
 NA More...
 
const cocos2d::Size getFileDesignSize (const char *fileName) const
 NA More...
 
void setFilePath (const std::string &strFilePath)
 
const std::string & getFilePath () const
 
void registerTypeAndCallBack (const std::string &classType, cocos2d::ObjectFactory::Instance ins, Ref *object, SEL_ParseEvent callBack)
 
void registerTypeAndCallBack (const std::string &classType, cocos2d::ObjectFactory::InstanceFunc ins, Ref *object, SEL_ParseEvent callBack)
 
ParseCallBackMapgetParseCallBackMap ()
 
ParseObjectMapgetParseObjectMap ()
 
- 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 ()
 NA NA More...
 

Static Public Member Functions

static GUIReadershareReader ()
 
static 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

NA

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

NA

cocos2d::ui::Widget* widgetFromBinaryFile ( const char *  fileName)
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: