11 #ifndef __SFSUserVariable__ 12 #define __SFSUserVariable__ 14 #include "../../Util/Common.h" 15 #include "BaseVariable.h" 16 #include "UserVariable.h" 17 #include "VariableType.h" 18 #include "../Data/ISFSObject.h" 19 #include "../Data/ISFSArray.h" 20 #include "../Data/SFSArray.h" 21 #include "../Data/SFSObject.h" 22 #include "../../Exceptions/SFSError.h" 24 #include <boost/shared_ptr.hpp> 27 #pragma warning(disable:4786) // STL library: disable warning 4786; this warning is generated due to a Microsoft bug 64 static boost::shared_ptr<UserVariable> FromSFSArray(boost::shared_ptr<ISFSArray> sfsa);
96 SFSUserVariable(
string name, boost::shared_ptr<void> val,
long int type);
108 static boost::shared_ptr<SFSUserVariable> newPrivateVariable(
string name, boost::shared_ptr<long int> val);
109 static boost::shared_ptr<SFSUserVariable> newPrivateVariable(
string name, boost::shared_ptr<unsigned long int> val);
110 static boost::shared_ptr<SFSUserVariable> newPrivateVariable(
string name, boost::shared_ptr<int> val);
111 static boost::shared_ptr<SFSUserVariable> newPrivateVariable(
string name, boost::shared_ptr<unsigned int> val);
112 static boost::shared_ptr<SFSUserVariable> newPrivateVariable(
string name, boost::shared_ptr<bool> val);
113 static boost::shared_ptr<SFSUserVariable> newPrivateVariable(
string name, boost::shared_ptr<double> val);
114 static boost::shared_ptr<SFSUserVariable> newPrivateVariable(
string name, boost::shared_ptr<string> val);
115 static boost::shared_ptr<SFSUserVariable> newPrivateVariable(
string name, boost::shared_ptr<SFSObject> val);
116 static boost::shared_ptr<SFSUserVariable> newPrivateVariable(
string name, boost::shared_ptr<SFSArray> val);
121 void IsPrivate(
bool value);
123 virtual boost::shared_ptr<string> Name();
124 virtual VariableType Type();
125 virtual boost::shared_ptr<void> Value();
126 virtual boost::shared_ptr<bool> GetBoolValue();
127 virtual boost::shared_ptr<long int> GetIntValue();
128 virtual boost::shared_ptr<double> GetDoubleValue();
129 virtual boost::shared_ptr<string> GetStringValue();
130 virtual boost::shared_ptr<ISFSObject> GetSFSObjectValue();
131 virtual boost::shared_ptr<ISFSArray> GetSFSArrayValue();
132 virtual bool IsNull();
133 virtual boost::shared_ptr<ISFSArray> ToSFSArray();
134 virtual boost::shared_ptr<string> ToString();
Definition: SFSCodecError.cpp:14
The BaseVariable object is the base class for all SmartFoxServer Variable entities on the client...
Definition: BaseVariable.h:47
The UserVariable interface defines all the public methods and properties that an object representing ...
Definition: UserVariable.h:43
The SFSUserVariable object represents a SmartFoxServer User Variable entity on the client...
Definition: SFSUserVariable.h:56
Definition: SmartFox.cpp:24
Definition: ISFSArray.h:17