cocos2d-x  3.0rc2
 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::Widget * widgetFromJsonFile (const char *fileName)
var widgetFromJsonFile ( var fileName)
local widgetFromJsonFile ( local fileName)
int getVersionInteger (const char *str)
void storeFileDesignSize (const char *fileName, const cocos2d::Size &size)
local storeFileDesignSize ( local fileName, local size)
const cocos2d::Size getFileDesignSize (const char *fileName) const
const std::string & getFilePath () const
local getFilePath ()
void registerTypeAndCallBack (const std::string &classType, 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)
ParseCallBackMap getParseCallBackMap ()
var getParseCallBackMap ()
ParseObjectMap getParseObjectMap ()
local getParseObjectMap ()
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Release the ownership immediately. More...
 
local release ()
 Release the ownership immediately. More...
 
Ref * autorelease ()
 Release 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 ()
var shareReader ()
local shareReader ()
static CC_DEPRECATED_ATTRIBUTE void purgeGUIReader ()
local purgeGUIReader ()
static GUIReader * 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
var m_strFilePath
local 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...
 

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 CC_DEPRECATED_ATTRIBUTE
void purgeGUIReader
( )
inlinestatic
var purgeGUIReader ( )
inlinestatic
local purgeGUIReader ( )
inlinestatic
void registerTypeAndCallBack ( const std::string &  classType,
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 
)
static CC_DEPRECATED_ATTRIBUTE
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*
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: