ROStreamable

Overview

This formal protocol defines the interface to read and write a complex type instance to a message. Complex types that implement this protocol include ROComplexType and ROException. In other words, the complex type should know how to read or write itself from/to the message.
Notice that the two complex type classes mentioned above are abstract classes and actual protocol implementation is done in the concrete descendants. You can see these implementations in .

This protocol is not intended to be used directly by users.

Location

Required Methods


readFromMessage:withName:

Defines the method to read the complex type data from the message. The message provides ROSerialization protocol members to read the data.

- (void) readFromMessage:(ROMessage *)aMessage withName:(NSString *)aName

Parameters:

  • aMessage: The instance of ROMessage class descendant that is the source of the complex type data.
  • aName: The name of the complex type value.

writeToMessage:withName:

Defines the method to write the complex type data into the message. The message provides ROSerialization protocol members to write the data.

- (void) writeToMessage:(ROMessage *)aMessage withName:(NSString *)aName

Parameters:

  • aMessage: The instance of the ROMessage class descendant the complex type data will be written into.
  • aName: The name of the complex type value.

See Also