NAME

Tibco::Rv::Msg::Field - Manipulate a Tibco message field

SYNOPSIS

my ( $field ) = $msg->createField( name => 'myField' );
$field->i8( 123 );
$field->opaque( "abc\0abc" );
$field->ipaddr32( '66.35.250.150' );
$field->u64array( [ 1, 123, 3030 ] );
print "U64Array\n" if ( $field->type == Tibco::Rv::Msg::U64ARRAY );
print "Count: ", $field->count, "; size: ", $field->size, "\n";

DESCRIPTION

Message Field-manipulating class. Holds a single value, like a C enum, along with a name and an id.

CONSTRUCTOR

$field = new Tibco::Rv::Msg::Field( %args )
%args:
   name => $name,
   id => $id

Creates a Tibco::Rv::Msg::Field, with name and id as given in %args (name defaults to undef and id defaults to 0, if not specified). $field is initialized with boolean value Tibco::Rv::FALSE.

METHODS

$name = $field->name
$field->name( $name )
$id = $field->id
$field->id( $id )
$count = $field->count
$size = $field->size
$type = $field->type
$value = $field-><type>
$field-><type>( $value )
<type> can be:
   bool, str, opaque, xml,
   f32, f64, i8, i16, i32, i64, u8, u16, u32, u64,
   ipaddr32, ipport16, date, or msg
$valueAryRef = $field-><type>array
$field-><type>array( [ $val1, $val2, ... ] )
<type> can be:
   f32, f64, i8, i16, i32, i64, u8, u16, u32, u64

AUTHOR

Paul Sturm <sturm@branewave.com>