|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.tool.io.ELIBConstants
public class ELIBConstants
This class has constants for reading and writing binary (.elib) files.
Field Summary | |
---|---|
static int |
CELL_BITS
|
static int |
MAGIC1
oldest magic number: version 1 |
static int |
MAGIC10
older magic number: version 10 |
static int |
MAGIC11
older magic number: version 11 |
static int |
MAGIC12
older magic number: version 12 |
static int |
MAGIC13
current magic number: version 13 |
static int |
MAGIC2
older magic number: version 2 |
static int |
MAGIC3
older magic number: version 3 |
static int |
MAGIC4
older magic number: version 4 |
static int |
MAGIC5
older magic number: version 5 |
static int |
MAGIC6
older magic number: version 6 |
static int |
MAGIC7
older magic number: version 7 |
static int |
MAGIC8
older magic number: version 8 |
static int |
MAGIC9
older magic number: version 9 |
static int |
VADDRESS
Defines an unsigned address. |
static int |
VARCINST
Defines an arcinst pointer. |
static int |
VARCPROTO
Defines an arcproto pointer. |
static int |
VBOOLEAN
Defines a boolean variable. |
static int |
VCHAR
Defines a character variable. |
static int |
VCODE1
Defines whether the variable is interpreted code (with VCODE2). |
static int |
VCODE2
Defines whether the variable is interpreted code (with VCODE1). |
static int |
VCONSTRAINT
Defines a constraint solver. |
static int |
VDISPLAY
Set if the variable is displayable (uses textdescript field). |
static int |
VDOUBLE
Defines a double-precision floating point. |
static int |
VFLOAT
Defines a floating point variable. |
static int |
VFRACT
Defines a fractional integer (scaled by WHOLE). |
static int |
VGENERAL
Defines a general address/type pairs (only in fixed-length arrays). |
static int |
VGEOM
Defines a geometry pointer. |
static int |
VGRAPHICS
Defines a graphics object pointer. |
static int |
VINTEGER
Defines a 32-bit integer variable. |
static int |
VISARRAY
Set if variable is an array of objects. |
static int |
VLENGTH
Defines the array length (0: array is -1 terminated). |
static int |
VLENGTHSH
Defines the right shift for VLENGTH. |
static int |
VLIBRARY
Defines a library pointer. |
static int |
VNETWORK
Defines a network pointer. |
static int |
VNODEINST
Defines a nodeinst pointer. |
static int |
VNODEPROTO
Defines a nodeproto pointer. |
static int |
VPOLYGON
Defines a polygon pointer. |
static int |
VPORTARCINST
Defines a portarcinst pointer. |
static int |
VPORTEXPINST
Defines a portexpinst pointer. |
static int |
VPORTPROTO
Defines a portproto pointer. |
static int |
VRTNODE
Defines an R-tree pointer. |
static int |
VSHORT
Defines a 16-bit integer. |
static int |
VSTRING
Defines a string variable. |
static int |
VTECHNOLOGY
Defines a technology pointer. |
static int |
VTFACE
Face of text bits in descriptor 1. |
static int |
VTFACESH
Right shift of VTFACE. |
static int |
VTOOL
Defines a tool pointer. |
static int |
VTYPE
Defines all above type fields. |
static int |
VUNKNOWN
Defines an undefined variable. |
static int |
VVIEW
Defines a view pointer. |
static int |
VWINDOWFRAME
Defines a window frame pointer. |
static int |
VWINDOWPART
Defines a window partition pointer. |
Constructor Summary | |
---|---|
ELIBConstants()
|
Method Summary | |
---|---|
static long |
dateToSeconds(java.util.Date date)
Method to convert a Java Date object to an integer (seconds since the epoch). |
static int |
getVarType(java.lang.Object obj)
Method to convert from Java types to "elib" types. |
static java.util.Date |
secondsToDate(int secondsSinceEpoch)
Method to convert an integer date read from disk to a Java Date object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAGIC13
public static final int MAGIC12
public static final int MAGIC11
public static final int MAGIC10
public static final int MAGIC9
public static final int MAGIC8
public static final int MAGIC7
public static final int MAGIC6
public static final int MAGIC5
public static final int MAGIC4
public static final int MAGIC3
public static final int MAGIC2
public static final int MAGIC1
public static final int VUNKNOWN
public static final int VINTEGER
public static final int VADDRESS
public static final int VCHAR
public static final int VSTRING
public static final int VFLOAT
public static final int VDOUBLE
public static final int VNODEINST
public static final int VNODEPROTO
public static final int VPORTARCINST
public static final int VPORTEXPINST
public static final int VPORTPROTO
public static final int VARCINST
public static final int VARCPROTO
public static final int VGEOM
public static final int VLIBRARY
public static final int VTECHNOLOGY
public static final int VTOOL
public static final int VRTNODE
public static final int VFRACT
public static final int VNETWORK
public static final int VVIEW
public static final int VWINDOWPART
public static final int VGRAPHICS
public static final int VSHORT
public static final int VCONSTRAINT
public static final int VGENERAL
public static final int VWINDOWFRAME
public static final int VPOLYGON
public static final int VBOOLEAN
public static final int VTYPE
public static final int VCODE1
public static final int VDISPLAY
public static final int VISARRAY
public static final int VLENGTH
public static final int VLENGTHSH
public static final int VCODE2
public static final int VTFACE
public static final int VTFACESH
public static final int CELL_BITS
Constructor Detail |
---|
public ELIBConstants()
Method Detail |
---|
public static java.util.Date secondsToDate(int secondsSinceEpoch)
secondsSinceEpoch
- the number of seconds since the epoch (Jan 1, 1970).
public static long dateToSeconds(java.util.Date date)
date
- a Java Date object.
public static int getVarType(java.lang.Object obj)
obj
- an Object of any class in the Electric world.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |