public enum ScalarType extends Enum<ScalarType>
C:\Program Files (x86)\Matrikon\OPC\Simulation\.| Enum Constant and Description |
|---|
ILLEGAL_TYPE
Not a recognized type code.
|
VT_BOOL
Boolean.
|
VT_BSTR
Unicode string, encoded on the server as UTF-16LE.
|
VT_CY
Currency.
|
VT_DATE
A A double counting the number of days, including a fraction, since 0 hours on Dec 30 1899.
|
VT_EMPTY
Nada.
|
VT_ERROR
32-bit error code.
|
VT_I1
Signed byte.
|
VT_I2
2-byte signed integer.
|
VT_I4
4-byte signed integer.
|
VT_R4
IEEE single.
|
VT_R8
IEEE double.
|
VT_UI1
Unsigned byte.
|
VT_UI2
Unsigned short.
|
VT_UI4
Unsigned int.
|
| Modifier and Type | Method and Description |
|---|---|
static ScalarType |
fromCode(int code)
Converts a an OPC type code to an ScalarType.
|
int |
getCode()
Gets the numerical code designating the OPC type.
|
static ScalarType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScalarType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScalarType VT_EMPTY
public static final ScalarType VT_I2
public static final ScalarType VT_I4
public static final ScalarType VT_R4
public static final ScalarType VT_R8
public static final ScalarType VT_CY
public static final ScalarType VT_DATE
public static final ScalarType VT_BSTR
public static final ScalarType VT_ERROR
public static final ScalarType VT_BOOL
public static final ScalarType VT_I1
public static final ScalarType VT_UI1
public static final ScalarType VT_UI2
public static final ScalarType VT_UI4
public static final ScalarType ILLEGAL_TYPE
public static ScalarType[] values()
for (ScalarType c : ScalarType.values()) System.out.println(c);
public static ScalarType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getCode()
public static ScalarType fromCode(int code)
code - The OPC type code (five bits).Copyright © 2017 LSST. All rights reserved.