diff -r ebc84c812384 -r 46218c8b8afa Symbian3/PDK/Source/GUID-8A2029C7-1258-5B12-B217-DE3EE4340B72.dita --- a/Symbian3/PDK/Source/GUID-8A2029C7-1258-5B12-B217-DE3EE4340B72.dita Thu Mar 11 15:24:26 2010 +0000 +++ b/Symbian3/PDK/Source/GUID-8A2029C7-1258-5B12-B217-DE3EE4340B72.dita Thu Mar 11 18:02:22 2010 +0000 @@ -1,28 +1,28 @@ - - - - - -How to externalise and internalise

For a class TX defined as:

class TX - { -public: - ... - void ExternalizeL(RWriteStream& aStream) const; - void InternalizeL(RReadStream& aStream); - ... - };

an instance of TX can be externalised to the stream outstream, by calling the ExternalizeL() member function of TX:

... - TX object; - ... - object.ExternalizeL(outstream); - ...

An alternative, and better way, is to use the templated stream operator<<. The Store framework implements this by calling TX::ExternalizeL(). The syntax is simply:

... - outstream << object; // externalise object - ...

Similarly, the TX object can be internalised from the stream instream, by calling the InternalizeL() member function of TX:

TX object; - ... - object.InternalizeL(instream); + + + + + +How to externalise and internalise

For a class TX defined as:

class TX + { +public: + ... + void ExternalizeL(RWriteStream& aStream) const; + void InternalizeL(RReadStream& aStream); + ... + };

an instance of TX can be externalised to the stream outstream, by calling the ExternalizeL() member function of TX:

... + TX object; + ... + object.ExternalizeL(outstream); + ...

An alternative, and better way, is to use the templated stream operator<<. The Store framework implements this by calling TX::ExternalizeL(). The syntax is simply:

... + outstream << object; // externalise object + ...

Similarly, the TX object can be internalised from the stream instream, by calling the InternalizeL() member function of TX:

TX object; + ... + object.InternalizeL(instream); ...

The templated stream operator>> can also be used. The Store framework implements this by calling TX::InternalizeL(). The syntax is simply:

instream >> object; // internalise object
\ No newline at end of file