org.tango.server.idl
Class CleverAnyAttribute

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

public final class CleverAnyAttribute
extends java.lang.Object

Convertion tool between java types and tango types for attributes

Author:
ABEILLE

Method Summary
static java.lang.Object get(org.omg.CORBA.Any any, int tangoType, fr.esrf.Tango.AttrDataFormat format)
          Get value of an Any
static org.omg.CORBA.Any set(int tangoType, java.lang.Object value)
          Set a value in an any
 
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(org.omg.CORBA.Any any,
                                   int tangoType,
                                   fr.esrf.Tango.AttrDataFormat format)
                            throws fr.esrf.Tango.DevFailed
Get value of an Any

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

set

public static org.omg.CORBA.Any set(int tangoType,
                                    java.lang.Object value)
                             throws fr.esrf.Tango.DevFailed
Set a value in an any

Parameters:
tangoType -
value -
Returns:
the Any
Throws:
fr.esrf.Tango.DevFailed


Copyright © 2012-2015. All Rights Reserved.