11 #ifndef __SFSBuddyVariable__ 12 #define __SFSBuddyVariable__ 14 #include "../../Util/Common.h" 15 #include "BaseVariable.h" 16 #include "BuddyVariable.h" 17 #include "../Data/ISFSArray.h" 18 #include "../Data/SFSArray.h" 19 #include "../Data/SFSObject.h" 21 #include <boost/shared_ptr.hpp> 24 #pragma warning(disable:4786) // STL library: disable warning 4786; this warning is generated due to a Microsoft bug 68 static boost::shared_ptr<BuddyVariable> FromSFSArray(boost::shared_ptr<ISFSArray> sfsa);
90 SFSBuddyVariable(boost::shared_ptr<string> name, boost::shared_ptr<void> val,
long int type);
106 boost::shared_ptr<string> Name();
108 boost::shared_ptr<void> Value();
109 boost::shared_ptr<bool> GetBoolValue();
110 boost::shared_ptr<long int> GetIntValue();
111 boost::shared_ptr<double> GetDoubleValue();
112 boost::shared_ptr<string> GetStringValue();
113 boost::shared_ptr<ISFSObject> GetSFSObjectValue();
114 boost::shared_ptr<ISFSArray> GetSFSArrayValue();
116 virtual boost::shared_ptr<ISFSArray> ToSFSArray();
125 boost::shared_ptr<string> ToString();
131 static boost::shared_ptr<string> OFFLINE_PREFIX;
The BaseVariable object is the base class for all SmartFoxServer Variable entities on the client...
Definition: BaseVariable.h:47
BuddyVariables are custom values attached to any Buddy in a BuddyList.
Definition: SFSBuddyVariable.h:60
Definition: SmartFox.cpp:24
Definition: ISFSArray.h:17