FooTypeSupport Class Reference
[User Data Type Support]

<<interface>> <<generic>> User data type specific interface. More...

List of all members.

Static Public Member Functions

static void register_type (DomainParticipant participant, String type_name)
 Allows an application to communicate to RTI Connext the existence of a data type.
static String type_name ()
 Get the default name for this type.


Detailed Description

<<interface>> <<generic>> User data type specific interface.

Defines the user data type specific interface generated for each application class.

The concrete user data type automatically generated by the implementation is an incarnation of this class.

See also:
rtiddsgen

Member Function Documentation

static void register_type ( DomainParticipant  participant,
String  type_name 
) [static]

Allows an application to communicate to RTI Connext the existence of a data type.

The generated implementation of the operation embeds all the knowledge that has to be communicated to the middleware in order to make it able to manage the contents of data of that type. This includes in particular the key definition that will allow RTI Connext to distinguish different instances of the same type.

The same TypeSupport can be registered multiple times with a com.rti.dds.domain.DomainParticipant using the same or different values for the type_name. If register_type is called multiple times on the same TypeSupport with the same com.rti.dds.domain.DomainParticipant and type_name, the second (and subsequent) registrations are ignored by the operation fails with RETCODE_OK.

Precondition:
Cannot use the same type_name to register two different TypeSupport with the same com.rti.dds.domain.DomainParticipant, or else the operation will fail and RETCODE_PRECONDITION_NOT_MET will be returned.
Parameters:
participant <<in>> the com.rti.dds.domain.DomainParticipant to register the data type Foo with. Cannot be NULL.
type_name <<in>> the type name under with the data type Foo is registered with the participant; this type name is used when creating a new com.rti.dds.topic.Topic. (See com.rti.dds.domain.DomainParticipant.create_topic.) The name may not be NULL or longer than 255 characters.
Exceptions:
One of the Standard Return Codes, RETCODE_PRECONDITION_NOT_MET or RETCODE_OUT_OF_RESOURCES.
MT Safety:
UNSAFE on the FIRST call. It is not safe for two threads to simultaneously make the first call to register a type. Subsequent calls are thread safe.
See also:
com.rti.dds.domain.DomainParticipant.create_topic

static String type_name (  )  [static]

Get the default name for this type.

Can be used for calling com.rti.dds.topic.example.FooTypeSupport.register_type or creating com.rti.dds.topic.Topic

Returns:
default name for this type
See also:
com.rti.dds.topic.example.FooTypeSupport.register_type

com.rti.dds.domain.DomainParticipant.create_topic


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