Foo Class Reference
[User Data Type Support]

A representative user-defined data type. More...

Inheritance diagram for Foo:

Copyable

List of all members.

Public Member Functions

Object copy_from (Object src)


Detailed Description

A representative user-defined data type.

Foo represents a user-defined data-type that is intended to be distributed using DDS.

The type Foo is usually defined using IDL syntax and placed in a ".idl" file that is then processed using rtiddsgen. The rtiddsgen utility generates the helper classes com.rti.dds.util.Sequence as well as the necessary code for DDS to manipulate the type (serialize it so that it can be sent over the network) as well as the implied com.rti.dds.topic.example.FooDataReader and com.rti.dds.topic.example.FooDataWriter types that allow the application to send and receive data of this type.

See also:
com.rti.dds.util.Sequence, com.rti.dds.topic.example.FooDataWriter, com.rti.dds.topic.example.FooDataReader, com.rti.dds.topic.example.FooTypeSupport, rtiddsgen

Member Function Documentation

Object copy_from ( Object  src  ) 

This is the implementation of the Copyable interface. This method will perform a deep copy of src. This method could be placed into FooTypeSupport.

rather than here by using the -noCopyable option to rtiddsgen.

Parameters:
src The Object which contains the data to be copied.
Returns:
Returns this
Exceptions:
NullPointerException If src is null.
ClassCastException If src is not the same type as this.
See also:
com.rti.dds.infrastructure.Copyable.copy_from(java.lang.Object)

Implements Copyable.


RTI Connext Java API Version 4.5f Copyright © 17 Mar 2012 Real-Time Innovations, Inc