#include <ArServerInfoStrings.h>
There are different ways ways you can add a string (they all are the same way internally). The raw way is addString which takes a functor with a buffer and a buffer len, the functor then has to fill in the string when called. The other ways are set up for convenience and are wrappers in this class around the addString, the other ways are addStringInt, addStringDouble, addStringBool, these all take a functor that returns the type and a format string (in addition to the name and maxLen again).
| ArServerInfoStrings::ArServerInfoStrings | ( | ArServerBase * | server | ) |
Constructor.
| ArServerInfoStrings::~ArServerInfoStrings | ( | ) |
Destructor.
| void ArServerInfoStrings::addString | ( | const char * | name, | |
| ArTypes::UByte2 | maxLen, | |||
| ArFunctor2< char *, ArTypes::UByte2 > * | functor | |||
| ) |
Adds a string to the list in the raw format.
| void ArServerInfoStrings::buildStringsInfoPacket | ( | void | ) | [protected] |
| void ArServerInfoStrings::buildStringsPacket | ( | void | ) | [protected] |
| ArFunctor3<const char *, ArTypes::UByte2, ArFunctor2<char *, ArTypes::UByte2> *>* ArServerInfoStrings::getAddStringFunctor | ( | void | ) | [inline] |
| void ArServerInfoStrings::netGetStrings | ( | ArServerClient * | client, | |
| ArNetPacket * | packet | |||
| ) |
Gets the strings.
| void ArServerInfoStrings::netGetStringsInfo | ( | ArServerClient * | client, | |
| ArNetPacket * | packet | |||
| ) |
Gets the information about the strings being sent.
ArFunctor3C<ArServerInfoStrings, const char *, ArTypes::UByte2, ArFunctor2<char *, ArTypes::UByte2> *> ArServerInfoStrings::myAddStringFunctor [protected] |
ArTime ArServerInfoStrings::myLastStringPacketBuild [protected] |
ArTypes::UByte2 ArServerInfoStrings::myMaxMaxLength [protected] |
ArFunctor2C<ArServerInfoStrings, ArServerClient *, ArNetPacket *> ArServerInfoStrings::myNetGetStringsCB [protected] |
ArFunctor2C<ArServerInfoStrings, ArServerClient *, ArNetPacket *> ArServerInfoStrings::myNetGetStringsInfoCB [protected] |
ArServerBase* ArServerInfoStrings::myServer [protected] |
ArNetPacket ArServerInfoStrings::myStringInfoPacket [protected] |
ArNetPacket ArServerInfoStrings::myStringPacket [protected] |
std::list<ArStringInfoHolder *> ArServerInfoStrings::myStrings [protected] |
ArMutex ArServerInfoStrings::myStringsMutex [protected] |
1.4.7