This class provides an interface for printing the payload of an instance of any subclass to a string.
Every subclass of this class will provide an implementation for toString() in its public interface and will therefor be printable. The implementations for container classes will include the output-strings of their elements into their own output string.
This class provides a default implementation for ToString::toString that simply returns the class name.
Inherit from this class instead of from ToString, when your class needs to implement the ToString interface, but does not have any meaningful payload to return. You should prefer to inherit from ToString and add a meaningful implementation whenever this makes sense.
toString |
( |
JString & |
retStr, |
|
|
bool |
withTypes = false |
|
) |
| const |
|
pure virtual |
- Parameters
-
retStr | reference to a string, to store the return-value in; the information, which is generated by this function, will be attached at the end of any eventually existing previous content of the string |
withTypes | set to true, to include type information in the generated string |
- Returns
- a JString representation of the instance and its contents for debugging purposes.
Implemented in JString, Dictionary< EKeyType, EValueType >, Dictionary< nByte, ExitGames::Common::Object >, Dictionary< ExitGames::Common::Object, ExitGames::Common::Object >, Dictionary< nByte, Common::Object >, SequenceContainer< T, Etype >, SequenceContainer< JVector, ExitGames::LoadBalancing::FriendInfo >, SequenceContainer< JList, Etype >, SequenceContainer< JVector, ExitGames::LoadBalancing::Player * >, SequenceContainer< JVector, ExitGames::Common::Object >, SequenceContainer< JVector, ExitGames::Chat::Channel * >, SequenceContainer< JQueue, SendFrameEventParams >, SequenceContainer< JVector, Etype >, SequenceContainer< JVector, Common::Helpers::SharedPointer< ExitGames::Voice::IProcessor< T > > >, SequenceContainer< JVector, ExitGames::Common::JString >, SequenceContainer< JVector, int >, SequenceContainer< JStack, Etype >, SequenceContainer< JVector, ExitGames::LoadBalancing::LobbyStatsRequest >, SequenceContainer< JQueue, Etype >, SequenceContainer< JArray, Etype >, SequenceContainer< JQueue, ExitGames::Voice::Buffer< nByte > >, SequenceContainer< JVector, Object >, SequenceContainer< JVector, ExitGames::Common::JVector< unsigned int > >, SequenceContainer< JVector, OT >, SequenceContainer< JLinkedList, Etype >, SequenceContainer< JVector, JObject >, SequenceContainer< JQueue, ExitGames::Voice::Buffer< T > >, SequenceContainer< JVector, ExitGames::LoadBalancing::Room * >, SequenceContainer< JHashSet, Etype >, SequenceContainer< JVector, unsigned int >, AssociativeContainerBase< T, OT >, AssociativeContainerBase< JHashtable, JObject >, AssociativeContainerBase< Hashtable, Object >, AssociativeContainerBase< T, JObject >, Object, JTime, DictionaryBase, JObject, Serializer, GenericAssociativeContainerBase< T, TImplementation, TObject >, GenericAssociativeContainerBase< JDictionary< int, ExitGames::Common::JDictionary< nByte, Common::Helpers::SharedPointer< ExitGames::Voice::RemoteVoice > > >, JHashtable, JObject >, GenericAssociativeContainerBase< JDictionary< nByte, int >, JHashtable, JObject >, GenericAssociativeContainerBase< JDictionary< int, ExitGames::Common::JVector< Common::Helpers::SharedPointer< ExitGames::Voice::LocalVoice > > >, JHashtable, JObject >, GenericAssociativeContainerBase< JSortedList< EKeyType, EValueType >, JHashtable, JObject >, GenericAssociativeContainerBase< JDictionary< nByte, Common::Helpers::SharedPointer< ExitGames::Voice::LocalVoice > >, JHashtable, JObject >, GenericAssociativeContainerBase< DictionaryBase, Hashtable, Object >, GenericAssociativeContainerBase< JDictionary< EKeyType, EValueType >, JHashtable, JObject >, GenericAssociativeContainerBase< T< EKeyType, EValueType >, JHashtable, JObject >, BaseCharString, Deserializer, ToStringDefaultImplementation, LoadBalancingTransport, RoomOptions, LocalVoice, VoiceInfo, TrafficStatsGameLevel, RaiseEventOptions, AuthenticationValues, AuthenticationValues, LogFormatOptions, TrafficStats, ClientConstructOptions, RemoteVoiceOptions, ConnectOptions, Channel, Logger, Player, Room, SendDirectOptions, RemoteVoice, WebFlags, ToneAudioPusher< T >, Buffer< T >, Buffer< nByte >, RemoteVoiceInfo, FriendInfo, LobbyStatsRequest, and LobbyStatsResponse.