#include <CCComAttribute.h>
Public Member Functions | |
| ComAttribute (void) | |
| virtual | ~ComAttribute (void) |
| virtual bool | init () override |
| virtual bool | serialize (void *r) override |
| local | serialize ( local r) |
| void | setInt (const std::string &key, int value) |
| void | setFloat (const std::string &key, float value) |
| void | setBool (const std::string &key, bool value) |
| void | setString (const std::string &key, const std::string &value) |
| local | setString ( local key, local value) |
| int | getInt (const std::string &key, int def=0) const |
| float | getFloat (const std::string &key, float def=0.0f) const |
| bool | getBool (const std::string &key, bool def=false) const |
| std::string | getString (const std::string &key, const std::string &def="") const |
| var | getString ( var key) |
| local | getString ( local key) |
| bool | parse (const std::string &jsonFile) |
Public Member Functions inherited from Component | |
| virtual | ~Component (void) |
| virtual void | onEnter () |
| virtual void | onExit () |
| virtual void | update (float delta) |
| virtual bool | isEnabled () const |
| virtual void | setEnabled (bool b) |
| const std::string & | getName () const |
| void | setName (const std::string &name) |
| void | setOwner (Node *pOwner) |
| Node * | getOwner () const |
Public Member Functions inherited from Ref | |
| void | retain () |
| Retains the ownership. More... | |
| void | release () |
| Releases the ownership immediately. More... | |
| Ref * | autorelease () |
| Releases the ownership sometime soon automatically. More... | |
| unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More... | |
| local | getReferenceCount () |
| Returns the Ref's current reference count. More... | |
| virtual | ~Ref () |
Static Public Member Functions | |
| static ComAttribute * | create (void) |
| var | create () |
| local | create () |
Static Public Member Functions inherited from Component | |
| static Component * | create (void) |
Additional Inherited Members | |
Protected Member Functions inherited from Ref | |
| Ref () | |
| Constructor. More... | |
| Ref () | |
| Constructor. More... | |
Protected Attributes inherited from Component | |
| Node * | _owner |
| std::string | _name |
| bool | _enabled |
Protected Attributes inherited from Ref | |
| unsigned int | _referenceCount |
| count of references More... | |
| local | _referenceCount |
| count of references More... | |
| ComAttribute | ( | void | ) |
| var ctor | ( | ) |
| local ComAttribute | ( | ) |
|
virtual |
|
static |
|
static |
|
static |
| bool getBool | ( | const std::string & | key, |
| bool | def = false |
||
| ) | const |
| var getBool | ( | var | key, |
| var | def = false |
||
| ) |
| local getBool | ( | local | key, |
| local | def = false |
||
| ) |
| float getFloat | ( | const std::string & | key, |
| float | def = 0.0f |
||
| ) | const |
| var getFloat | ( | var | key, |
| var | def = 0.0f |
||
| ) |
| local getFloat | ( | local | key, |
| local | def = 0.0f |
||
| ) |
| int getInt | ( | const std::string & | key, |
| int | def = 0 |
||
| ) | const |
| var getInt | ( | var | key, |
| var | def = 0 |
||
| ) |
| local getInt | ( | local | key, |
| local | def = 0 |
||
| ) |
| std::string getString | ( | const std::string & | key, |
| const std::string & | def = "" |
||
| ) | const |
| var getString | ( | var | key, |
| var | def = "" |
||
| ) |
| local getString | ( | local | key, |
| local | def = "" |
||
| ) |
|
overridevirtual |
Reimplemented from Component.
|
overridevirtual |
Reimplemented from Component.
|
overridevirtual |
Reimplemented from Component.
| bool parse | ( | const std::string & | jsonFile | ) |
| var parse | ( | var | jsonFile | ) |
| local parse | ( | local | jsonFile | ) |
|
overridevirtual |
Reimplemented from Component.
|
overridevirtual |
Reimplemented from Component.
|
overridevirtual |
Reimplemented from Component.
| void setBool | ( | const std::string & | key, |
| bool | value | ||
| ) |
| var setBool | ( | var | key, |
| var | value | ||
| ) |
| local setBool | ( | local | key, |
| local | value | ||
| ) |
| void setFloat | ( | const std::string & | key, |
| float | value | ||
| ) |
| var setFloat | ( | var | key, |
| var | value | ||
| ) |
| local setFloat | ( | local | key, |
| local | value | ||
| ) |
| void setInt | ( | const std::string & | key, |
| int | value | ||
| ) |
| var setInt | ( | var | key, |
| var | value | ||
| ) |
| local setInt | ( | local | key, |
| local | value | ||
| ) |
| void setString | ( | const std::string & | key, |
| const std::string & | value | ||
| ) |
| var setString | ( | var | key, |
| var | value | ||
| ) |
| local setString | ( | local | key, |
| local | value | ||
| ) |