org.tango.server.idl
Class CleverAttrValUnion

java.lang.Object
  extended by org.tango.server.idl.CleverAttrValUnion

public final class CleverAttrValUnion
extends java.lang.Object

A helper class to insert / extract AttrValUnion with the method that matches the attribute type

Author:
ABEILLE

Method Summary
static java.lang.Object get(fr.esrf.Tango.AttrValUnion union, fr.esrf.Tango.AttrDataFormat format)
          Get value from an AttrValUnion
static fr.esrf.Tango.AttrValUnion set(int tangoType, java.lang.Object value)
          Set a value into an AttrValUnion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static java.lang.Object get(fr.esrf.Tango.AttrValUnion union,
                                   fr.esrf.Tango.AttrDataFormat format)
                            throws fr.esrf.Tango.DevFailed
Get value from an AttrValUnion

Parameters:
union -
format -
Returns:
The value
Throws:
fr.esrf.Tango.DevFailed

set

public static fr.esrf.Tango.AttrValUnion set(int tangoType,
                                             java.lang.Object value)
                                      throws fr.esrf.Tango.DevFailed
Set a value into an AttrValUnion

Parameters:
tangoType -
value -
Returns:
The union
Throws:
fr.esrf.Tango.DevFailed


Copyright © 2012-2014. All Rights Reserved.