|
WSF
|
#include <WsfXIO_SerializeTypes.hpp>
Public Member Functions | |
| WsfXIO_StringDictionary () | |
| void | Save (PakO &aAr) |
| void | Load (PakI &aAr) |
| WsfXIO_StringId | Encode (WsfStringId aStringId) |
| std::string | Decode (WsfXIO_StringId &aXIO_Id) |
| void | Clear () |
Protected Member Functions | |
| void | ComputeIds () |
| void | ComputeStrings () |
Protected Attributes | |
| std::map< WsfStringId, int > | mEncodingMap |
| std::vector< std::string > | mStrings |
Sometimes it is necessary to put multiple strings into a packet. This maps the strings to integers so strings are only transmitted once per packet.
| WsfXIO_StringDictionary::WsfXIO_StringDictionary | ( | ) |
References mEncodingMap.
| void WsfXIO_StringDictionary::Clear | ( | ) |
References mEncodingMap, and mStrings.
Referenced by WsfXIO_DrawService::DrawUpdate().
|
protected |
References ComputeStrings().
|
protected |
References mEncodingMap, and mStrings.
Referenced by ComputeIds(), and Save().
| std::string WsfXIO_StringDictionary::Decode | ( | WsfXIO_StringId & | aXIO_Id | ) |
References WsfXIO_StringId::mStringId, and mStrings.
| WsfXIO_StringId WsfXIO_StringDictionary::Encode | ( | WsfStringId | aStringId | ) |
References mEncodingMap.
Referenced by WsfXIO_DrawService::DrawUpdate().
| void WsfXIO_StringDictionary::Save | ( | PakO & | aAr | ) |
References ComputeStrings(), and mStrings.
Referenced by Save().
|
protected |
Referenced by Clear(), ComputeStrings(), Encode(), and WsfXIO_StringDictionary().
|
protected |
Referenced by Clear(), ComputeStrings(), Decode(), Load(), and Save().