SmartFoxServer 2X C++ API
|
#include <SFSObject.h>
Public Member Functions | |
SFSObject () | |
boost::shared_ptr< SFSDataWrapper > | GetData (string key) |
<exclude> | |
boost::shared_ptr< bool > | GetBool (string key) |
Returns the element corresponding to the specified key as a boolean. More... | |
boost::shared_ptr< bool > | GetBool (boost::shared_ptr< string > key) |
Returns the element corresponding to the specified key as a boolean. More... | |
boost::shared_ptr< unsigned char > | GetByte (string key) |
Returns the element corresponding to the specified key as a signed byte (8 bits). More... | |
boost::shared_ptr< unsigned char > | GetByte (boost::shared_ptr< string > key) |
Returns the element corresponding to the specified key as a signed byte (8 bits). More... | |
boost::shared_ptr< short int > | GetShort (string key) |
Returns the element corresponding to the specified key as a short integer (16 bits). More... | |
boost::shared_ptr< short int > | GetShort (boost::shared_ptr< string > key) |
Returns the element corresponding to the specified key as a short integer (16 bits). More... | |
boost::shared_ptr< long int > | GetInt (string key) |
Returns the element corresponding to the specified key as an integer (32 bits). More... | |
boost::shared_ptr< long int > | GetInt (boost::shared_ptr< string > key) |
Returns the element corresponding to the specified key as an integer (32 bits). More... | |
boost::shared_ptr< long long > | GetLong (string key) |
Returns the element corresponding to the specified key as a long integer (64 bits). More... | |
boost::shared_ptr< long long > | GetLong (boost::shared_ptr< string > key) |
Returns the element corresponding to the specified key as a long integer (64 bits). More... | |
boost::shared_ptr< float > | GetFloat (string key) |
Returns the element corresponding to the specified key as a floating point number. More... | |
boost::shared_ptr< float > | GetFloat (boost::shared_ptr< string > key) |
Returns the element corresponding to the specified key as a floating point number. More... | |
boost::shared_ptr< double > | GetDouble (string key) |
Returns the element corresponding to the specified key as a double precision number. More... | |
boost::shared_ptr< double > | GetDouble (boost::shared_ptr< string > key) |
Returns the element corresponding to the specified key as a double precision number. More... | |
boost::shared_ptr< string > | GetUtfString (string key) |
Returns the element corresponding to the specified key as an UTF-8 string, with max length of 32 KBytes. More... | |
boost::shared_ptr< string > | GetUtfString (boost::shared_ptr< string > key) |
Returns the element corresponding to the specified key as an UTF-8 string, with max length of 32 KBytes. More... | |
boost::shared_ptr< string > | GetText (string key) |
Returns the element corresponding to the specified key as an UTF-8 string, with max length of 2 GBytes. More... | |
boost::shared_ptr< string > | GetText (boost::shared_ptr< string > key) |
Returns the element corresponding to the specified key as an UTF-8 string, with max length of 2 GBytes. More... | |
boost::shared_ptr< vector< bool > > | GetBoolArray (string key) |
Returns the element corresponding to the specified key as an array of booleans. More... | |
boost::shared_ptr< vector< bool > > | GetBoolArray (boost::shared_ptr< string > key) |
Returns the element corresponding to the specified key as an array of booleans. More... | |
boost::shared_ptr< ByteArray > | GetByteArray (string key) |
Returns the element corresponding to the specified key as a ByteArray object. More... | |
boost::shared_ptr< ByteArray > | GetByteArray (boost::shared_ptr< string > key) |
Returns the element corresponding to the specified key as a ByteArray object. More... | |
boost::shared_ptr< vector< short int > > | GetShortArray (string key) |
Returns the element corresponding to the specified key as an array of shorts. More... | |
boost::shared_ptr< vector< short int > > | GetShortArray (boost::shared_ptr< string > key) |
Returns the element corresponding to the specified key as an array of shorts. More... | |
boost::shared_ptr< vector< long int > > | GetIntArray (string key) |
Returns the element corresponding to the specified key as an array of integers. More... | |
boost::shared_ptr< vector< long int > > | GetIntArray (boost::shared_ptr< string > key) |
Returns the element corresponding to the specified key as an array of integers. More... | |
boost::shared_ptr< vector< long long > > | GetLongArray (string key) |
Returns the element corresponding to the specified key as an array of longs. More... | |
boost::shared_ptr< vector< long long > > | GetLongArray (boost::shared_ptr< string > key) |
Returns the element corresponding to the specified key as an array of longs. More... | |
boost::shared_ptr< vector< float > > | GetFloatArray (string key) |
Returns the element corresponding to the specified key as an array of floats. More... | |
boost::shared_ptr< vector< float > > | GetFloatArray (boost::shared_ptr< string > key) |
Returns the element corresponding to the specified key as an array of floats. More... | |
boost::shared_ptr< vector< double > > | GetDoubleArray (string key) |
Returns the element corresponding to the specified key as an array of doubles. More... | |
boost::shared_ptr< vector< double > > | GetDoubleArray (boost::shared_ptr< string > key) |
Returns the element corresponding to the specified key as an array of doubles. More... | |
boost::shared_ptr< vector< string > > | GetUtfStringArray (string key) |
Returns the element corresponding to the specified key as an array of UTF-8 strings. More... | |
boost::shared_ptr< vector< string > > | GetUtfStringArray (boost::shared_ptr< string > key) |
Returns the element corresponding to the specified key as an array of UTF-8 strings. More... | |
boost::shared_ptr< ISFSArray > | GetSFSArray (string key) |
Returns the element corresponding to the specified key as an ISFSArray object. More... | |
boost::shared_ptr< ISFSArray > | GetSFSArray (boost::shared_ptr< string > key) |
Returns the element corresponding to the specified key as an ISFSArray object. More... | |
boost::shared_ptr< ISFSObject > | GetSFSObject (string key) |
Returns the element corresponding to the specified key as an ISFSObject object. More... | |
boost::shared_ptr< ISFSObject > | GetSFSObject (boost::shared_ptr< string > key) |
Returns the element corresponding to the specified key as an ISFSObject object. More... | |
void | PutNull (string key) |
<exclude> | |
void | PutBool (string key, boost::shared_ptr< bool > val) |
Associates the passed boolean value with the specified key in this object. More... | |
void | PutBool (boost::shared_ptr< string > key, boost::shared_ptr< bool > val) |
Associates the passed boolean value with the specified key in this object. More... | |
void | PutBool (string key, bool val) |
Associates the passed boolean value with the specified key in this object. More... | |
void | PutBool (boost::shared_ptr< string > key, bool val) |
Associates the passed boolean value with the specified key in this object. More... | |
void | PutByte (string key, boost::shared_ptr< unsigned char > val) |
Associates the passed byte value with the specified key in this object. More... | |
void | PutByte (boost::shared_ptr< string > key, boost::shared_ptr< unsigned char > val) |
Associates the passed byte value with the specified key in this object. More... | |
void | PutByte (string key, unsigned char val) |
Associates the passed byte value with the specified key in this object. More... | |
void | PutByte (boost::shared_ptr< string > key, unsigned char val) |
Associates the passed byte value with the specified key in this object. More... | |
void | PutShort (string key, boost::shared_ptr< short int > val) |
Associates the passed short value with the specified key in this object. More... | |
void | PutShort (boost::shared_ptr< string > key, boost::shared_ptr< short int > val) |
Associates the passed short value with the specified key in this object. More... | |
void | PutShort (string key, short int val) |
Associates the passed short value with the specified key in this object. More... | |
void | PutShort (boost::shared_ptr< string > key, short int val) |
Associates the passed short value with the specified key in this object. More... | |
void | PutInt (string key, boost::shared_ptr< long int > val) |
Associates the passed integer value with the specified key in this object. More... | |
void | PutInt (boost::shared_ptr< string > key, boost::shared_ptr< long int > val) |
Associates the passed integer value with the specified key in this object. More... | |
void | PutInt (string key, long int val) |
Associates the passed integer value with the specified key in this object. More... | |
void | PutInt (boost::shared_ptr< string > key, long int val) |
Associates the passed integer value with the specified key in this object. More... | |
void | PutLong (string key, boost::shared_ptr< long long > val) |
Associates the passed long value with the specified key in this object. More... | |
void | PutLong (boost::shared_ptr< string > key, boost::shared_ptr< long long > val) |
Associates the passed long value with the specified key in this object. More... | |
void | PutLong (string key, long long val) |
Associates the passed long value with the specified key in this object. More... | |
void | PutLong (boost::shared_ptr< string > key, long long val) |
Associates the passed long value with the specified key in this object. More... | |
void | PutFloat (string key, boost::shared_ptr< float > val) |
Associates the passed float value with the specified key in this object. More... | |
void | PutFloat (boost::shared_ptr< string > key, boost::shared_ptr< float > val) |
Associates the passed float value with the specified key in this object. More... | |
void | PutFloat (string key, float val) |
Associates the passed float value with the specified key in this object. More... | |
void | PutFloat (boost::shared_ptr< string > key, float val) |
Associates the passed float value with the specified key in this object. More... | |
void | PutDouble (string key, boost::shared_ptr< double > val) |
Associates the passed double value with the specified key in this object. More... | |
void | PutDouble (boost::shared_ptr< string > key, boost::shared_ptr< double > val) |
Associates the passed double value with the specified key in this object. More... | |
void | PutDouble (string key, double val) |
Associates the passed double value with the specified key in this object. More... | |
void | PutDouble (boost::shared_ptr< string > key, double val) |
Associates the passed double value with the specified key in this object. More... | |
void | PutUtfString (string key, boost::shared_ptr< string > val) |
Associates the passed UTF-8 string value (max length: 32 KBytes) with the specified key in this object. More... | |
void | PutUtfString (boost::shared_ptr< string > key, boost::shared_ptr< string > val) |
Associates the passed UTF-8 string value (max length: 32 KBytes) with the specified key in this object. More... | |
void | PutUtfString (string key, string val) |
Associates the passed UTF-8 string value (max length: 32 KBytes) with the specified key in this object. More... | |
void | PutUtfString (boost::shared_ptr< string > key, string val) |
Associates the passed UTF-8 string value (max length: 32 KBytes) with the specified key in this object. More... | |
void | PutText (string key, boost::shared_ptr< string > val) |
Associates the passed UTF-8 string value (max length: 2 GBytes) with the specified key in this object. More... | |
void | PutText (boost::shared_ptr< string > key, boost::shared_ptr< string > val) |
Associates the passed UTF-8 string value (max length: 2 GBytes) with the specified key in this object. More... | |
void | PutText (string key, string val) |
Associates the passed UTF-8 string value (max length: 2 GBytes) with the specified key in this object. More... | |
void | PutText (boost::shared_ptr< string > key, string val) |
Associates the passed UTF-8 string value (max length: 2 GBytes) with the specified key in this object. More... | |
void | PutBoolArray (string key, boost::shared_ptr< vector< bool > > val) |
Associates the passed array of booleans with the specified key in this object. More... | |
void | PutBoolArray (boost::shared_ptr< string > key, boost::shared_ptr< vector< bool > > val) |
Associates the passed array of booleans with the specified key in this object. More... | |
void | PutByteArray (string key, boost::shared_ptr< ByteArray > val) |
Associates the passed ByteArray object with the specified key in this object. More... | |
void | PutByteArray (boost::shared_ptr< string > key, boost::shared_ptr< ByteArray > val) |
Associates the passed ByteArray object with the specified key in this object. More... | |
void | PutShortArray (string key, boost::shared_ptr< vector< short int > > val) |
Associates the passed array of shorts with the specified key in this object. More... | |
void | PutShortArray (boost::shared_ptr< string > key, boost::shared_ptr< vector< short int > > val) |
Associates the passed array of shorts with the specified key in this object. More... | |
void | PutIntArray (string key, boost::shared_ptr< vector< long int > > val) |
Associates the passed array of integers with the specified key in this object. More... | |
void | PutIntArray (boost::shared_ptr< string > key, boost::shared_ptr< vector< long int > > val) |
Associates the passed array of integers with the specified key in this object. More... | |
void | PutLongArray (string key, boost::shared_ptr< vector< long long > > val) |
Associates the passed array of longs with the specified key in this object. More... | |
void | PutLongArray (boost::shared_ptr< string > key, boost::shared_ptr< vector< long long > > val) |
Associates the passed array of longs with the specified key in this object. More... | |
void | PutFloatArray (string key, boost::shared_ptr< vector< float > > val) |
Associates the passed array of floats with the specified key in this object. More... | |
void | PutFloatArray (boost::shared_ptr< string > key, boost::shared_ptr< vector< float > > val) |
Associates the passed array of floats with the specified key in this object. More... | |
void | PutDoubleArray (string key, boost::shared_ptr< vector< double > > val) |
Associates the passed array of doubles with the specified key in this object. More... | |
void | PutDoubleArray (boost::shared_ptr< string > key, boost::shared_ptr< vector< double > > val) |
Associates the passed array of doubles with the specified key in this object. More... | |
void | PutUtfStringArray (string key, boost::shared_ptr< vector< string > > val) |
Associates the passed array of UTF-8 strings with the specified key in this object. More... | |
void | PutUtfStringArray (boost::shared_ptr< string > key, boost::shared_ptr< vector< string > > val) |
Associates the passed array of UTF-8 strings with the specified key in this object. More... | |
void | PutSFSArray (string key, boost::shared_ptr< ISFSArray > val) |
Associates the passed ISFSArray object with the specified key in this object. More... | |
void | PutSFSArray (boost::shared_ptr< string > key, boost::shared_ptr< ISFSArray > val) |
Associates the passed ISFSArray object with the specified key in this object. More... | |
void | PutSFSObject (string key, boost::shared_ptr< ISFSObject > val) |
Associates the passed ISFSObject object with the specified key in this object. More... | |
void | PutSFSObject (boost::shared_ptr< string > key, boost::shared_ptr< ISFSObject > val) |
Associates the passed ISFSObject object with the specified key in this object. More... | |
void | Put (string key, boost::shared_ptr< SFSDataWrapper > val) |
<exclude> | |
void | Put (boost::shared_ptr< string > key, boost::shared_ptr< SFSDataWrapper > val) |
<exclude> | |
bool | ContainsKey (string key) |
Indicates whether this object contains a mapping for the specified key or not. More... | |
bool | ContainsKey (boost::shared_ptr< string > key) |
Indicates whether this object contains a mapping for the specified key or not. More... | |
boost::shared_ptr< void > | GetClass (string key) |
Returns the element corresponding to the specified key as an instance of a custom class. More... | |
boost::shared_ptr< string > | GetDump (bool format) |
Provides a formatted string representing this object. More... | |
boost::shared_ptr< string > | GetDump () |
See GetDump(bool). More... | |
boost::shared_ptr< string > | GetHexDump () |
Provides a detailed hexadecimal representation of this object. More... | |
boost::shared_ptr< vector< string > > | GetKeys () |
Retrieves a list of all the keys contained in this object. More... | |
bool | IsNull (boost::shared_ptr< string > key) |
Indicates if the value mapped by the specified key is null . More... | |
bool | IsNull (string key) |
Indicates if the value mapped by the specified key is null . More... | |
void | PutClass (string key, boost::shared_ptr< void > val) |
Associates the passed custom class instance with the specified key in this object. More... | |
void | PutClass (boost::shared_ptr< string > key, boost::shared_ptr< void > val) |
Associates the passed custom class instance with the specified key in this object. More... | |
void | RemoveElement (string key) |
Removes the element corresponding to the passed key from this object. More... | |
void | RemoveElement (boost::shared_ptr< string > key) |
Removes the element corresponding to the passed key from this object. More... | |
long int | Size () |
Indicates the number of elements in this object. More... | |
boost::shared_ptr< ByteArray > | ToBinary () |
Provides the binary form of this object. More... | |
Static Public Member Functions | |
static boost::shared_ptr< SFSObject > | NewFromObject (boost::shared_ptr< void > o) |
Alternative static constructor that builds an SFSObject populated with the data found in the passed Object More... | |
static boost::shared_ptr< SFSObject > | NewFromBinaryData (boost::shared_ptr< ByteArray > ba) |
Alternative static constructor that builds an SFSObject from a valid SFSObject binary representation More... | |
static boost::shared_ptr< SFSObject > | NewInstance () |
Alternative static constructor More... | |
SFSObject is used from server and client side to exchange data. It can be thought of a specialized Dictionary/Map object that can contain any type of data.
The advantage of using SFSObject is that you can fine tune the way your data will be transmitted over the network.
For instance, a number like 100 can be transmitted as a normal integer (which takes 32 bits) but also a short (16 bit) or even a byte (8 bit)
SFSObject supports many primitive data types and related arrays of primitives. It also allows to serialize class instances and rebuild them on the Java side.
This is explained in greater detail in a separate document.
Sfs2X::Entities::Data::SFSObject::SFSObject | ( | ) |
|
virtual |
Indicates whether this object contains a mapping for the specified key or not.
key | The key whose presence in this object is to be tested. |
true
if this object contains a mapping for the specified key.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Indicates whether this object contains a mapping for the specified key or not.
key | The key whose presence in this object is to be tested. |
true
if this object contains a mapping for the specified key.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as a boolean.
key | The key whose associated value is to be returned. |
false
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as a boolean.
key | The key whose associated value is to be returned. |
false
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an array of booleans.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an array of booleans.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as a signed byte (8 bits).
key | The key whose associated value is to be returned. |
0
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as a signed byte (8 bits).
key | The key whose associated value is to be returned. |
0
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as a ByteArray object.
IMPORTANT: ByteArrays transmission is not supported in Unity WebGL.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as a ByteArray object.
IMPORTANT: ByteArrays transmission is not supported in Unity WebGL.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an instance of a custom class.
This advanced feature allows the transmission of specific object instances between client-side C++ and server-side Java provided that:
DefaultSFSDataSerializer.RunningAssembly = Assembly.GetExecutingAssembly();
(requires System.Reflection
and Sfs2X.Protocol.Serialization
) This is an example of the same class on the server and client side:
Server Java code:
Client AS3 code:
A SpaceShip instance from server side is sent to the client. This is how you get it:
key | A string pointer |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as a double precision number.
key | The key whose associated value is to be returned. |
0
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as a double precision number.
key | The key whose associated value is to be returned. |
0
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an array of doubles.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an array of doubles.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Provides a formatted string representing this object.
The returned string can be logged or traced in the console for debugging purposes.
format | If true , the output is formatted in a human-readable way. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
See GetDump(bool).
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as a floating point number.
key | The key whose associated value is to be returned. |
0
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as a floating point number.
key | The key whose associated value is to be returned. |
0
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an array of floats.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an array of floats.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Provides a detailed hexadecimal representation of this object.
The returned string can be logged or traced in the console for debugging purposes.
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an integer (32 bits).
key | The key whose associated value is to be returned. |
0
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an integer (32 bits).
key | The key whose associated value is to be returned. |
0
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an array of integers.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an array of integers.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Retrieves a list of all the keys contained in this object.
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as a long integer (64 bits).
key | The key whose associated value is to be returned. |
0
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as a long integer (64 bits).
key | The key whose associated value is to be returned. |
0
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an array of longs.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an array of longs.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an ISFSArray object.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an ISFSArray object.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an ISFSObject object.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an ISFSObject object.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as a short integer (16 bits).
key | The key whose associated value is to be returned. |
0
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as a short integer (16 bits).
key | The key whose associated value is to be returned. |
0
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an array of shorts.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an array of shorts.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an UTF-8 string, with max length of 2 GBytes.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an UTF-8 string, with max length of 2 GBytes.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an UTF-8 string, with max length of 32 KBytes.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an UTF-8 string, with max length of 32 KBytes.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an array of UTF-8 strings.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Returns the element corresponding to the specified key as an array of UTF-8 strings.
key | The key whose associated value is to be returned. |
null
if a mapping for the passed key doesn't exist.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Indicates if the value mapped by the specified key is null
.
key | The key to be checked. |
true
if the value mapped by the passed key is null
or the mapping doesn't exist for that key.Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Indicates if the value mapped by the specified key is null
.
key | The key to be checked. |
true
if the value mapped by the passed key is null
or the mapping doesn't exist for that key.Implements Sfs2X::Entities::Data::ISFSObject.
|
static |
|
static |
|
static |
Alternative static constructor
|
virtual |
Associates the passed boolean value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed boolean value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed boolean value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed boolean value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed array of booleans with the specified key in this object.
key | The key with which the specified array is to be associated. |
val | The array of booleans to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed array of booleans with the specified key in this object.
key | The key with which the specified array is to be associated. |
val | The array of booleans to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed byte value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed byte value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed byte value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed byte value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed ByteArray object with the specified key in this object.
IMPORTANT: ByteArrays transmission is not supported in Unity WebGL.
key | The key with which the specified object is to be associated. |
val | The object to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed ByteArray object with the specified key in this object.
IMPORTANT: ByteArrays transmission is not supported in Unity WebGL.
key | The key with which the specified object is to be associated. |
val | The object to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed custom class instance with the specified key in this object.
Read the GetClass method description for more informations.
key | The key with which the specified custom class instance is to be associated. |
val | The custom class instance to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed custom class instance with the specified key in this object.
Read the GetClass method description for more informations.
key | The key with which the specified custom class instance is to be associated. |
val | The custom class instance to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed double value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed double value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed double value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed double value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed array of doubles with the specified key in this object.
key | The key with which the specified array is to be associated. |
val | The array of doubles to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed array of doubles with the specified key in this object.
key | The key with which the specified array is to be associated. |
val | The array of doubles to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed float value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed float value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed float value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed float value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed array of floats with the specified key in this object.
key | The key with which the specified array is to be associated. |
val | The array of floats to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed array of floats with the specified key in this object.
key | The key with which the specified array is to be associated. |
val | The array of floats to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed integer value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed integer value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed integer value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed integer value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed array of integers with the specified key in this object.
key | The key with which the specified array is to be associated. |
val | The array of integers to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed array of integers with the specified key in this object.
key | The key with which the specified array is to be associated. |
val | The array of integers to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed long value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed long value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed long value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed long value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed array of longs with the specified key in this object.
key | The key with which the specified array is to be associated. |
val | The array of longs to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed array of longs with the specified key in this object.
key | The key with which the specified array is to be associated. |
val | The array of longs to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed ISFSArray object with the specified key in this object.
key | The key with which the specified object is to be associated. |
val | The object to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed ISFSArray object with the specified key in this object.
key | The key with which the specified object is to be associated. |
val | The object to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed ISFSObject object with the specified key in this object.
key | The key with which the specified object is to be associated. |
val | The object to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed ISFSObject object with the specified key in this object.
key | The key with which the specified object is to be associated. |
val | The object to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed short value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed short value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed short value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed short value with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed array of shorts with the specified key in this object.
key | The key with which the specified array is to be associated. |
val | The array of shorts to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed array of shorts with the specified key in this object.
key | The key with which the specified array is to be associated. |
val | The array of shorts to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed UTF-8 string value (max length: 2 GBytes) with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed UTF-8 string value (max length: 2 GBytes) with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed UTF-8 string value (max length: 2 GBytes) with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed UTF-8 string value (max length: 2 GBytes) with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed UTF-8 string value (max length: 32 KBytes) with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed UTF-8 string value (max length: 32 KBytes) with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed UTF-8 string value (max length: 32 KBytes) with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed UTF-8 string value (max length: 32 KBytes) with the specified key in this object.
key | The key with which the specified value is to be associated. |
val | The value to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed array of UTF-8 strings with the specified key in this object.
key | The key with which the specified array is to be associated. |
val | The array of UTF-8 strings to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Associates the passed array of UTF-8 strings with the specified key in this object.
key | The key with which the specified array is to be associated. |
val | The array of UTF-8 strings to be associated with the specified key. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Removes the element corresponding to the passed key from this object.
key | The key of the element to be removed. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Removes the element corresponding to the passed key from this object.
key | The key of the element to be removed. |
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Indicates the number of elements in this object.
Implements Sfs2X::Entities::Data::ISFSObject.
|
virtual |
Provides the binary form of this object.
Implements Sfs2X::Entities::Data::ISFSObject.