class Gdsii::RecDataTypeInfo

Class to store information about each record data type. The Gdsii::DATATYPE_INFO array has an index of GDT_* integer values with the value being an instance of this class. For example:

Gdsii::RECORD_INFO[Gdsii::GDT_ASCII].name     #=> 'ASCII'
Gdsii::RECORD_INFO[Gdsii::GDT_REAL4].valid    #=> false

Attributes

name[R]

Name of this record data type (should be the same as the Gdsii::GDT_* name but without the “Gdsii::GDT_”.

size[R]

Integer value indicating the size (in bytes) required for this data type. The exception is Gdsii::GDT_ASCII which has a size of 0 but in actuality has a variable-length size.

valid[R]

Boolean value indicating whether or not this record data type is valid.

Public Class Methods

new(name, valid, size) click to toggle source

Object constructor. Intended to be used internally only to add elements to the Gdsii::DATATYPE_INFO array.

# File lib/gdsii/record/consts.rb, line 116
def initialize(name, valid, size)
  @name = name
  @valid = valid
  @size = size
end

Public Instance Methods

to_s() click to toggle source

Returns the data type's name

# File lib/gdsii/record/consts.rb, line 123
def to_s(); @name; end