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

Static Public Member Functions

static GUIReadershareReader ()
local shareReader ()
static void purgeGUIReader ()
static GUIReadergetInstance ()
local getInstance ()
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...
 
 Ref ()
 Constructor. More...
 

Protected Attributes

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

Member Typedef Documentation

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

Constructor & Destructor Documentation

GUIReader ( )
protected
var GUIReader ( )
protected
local GUIReader ( )
protected
~GUIReader ( )
protected
var ~GUIReader ( )
protected
local ~GUIReader ( )
protected

Member Function Documentation

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

Member Data Documentation

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

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