Limbo 3.5.4
Loading...
Searching...
No Matches
GdsParser Namespace Reference

namespace for Limbo.GdsParser More...

Namespaces

namespace  GdsDB
 namespace for Limbo.GdsParser.GdsDB

Classes

struct  gds_celltype
 cell type More...
struct  gds_itemtype
 GDSII item type. More...
struct  GdsBoundary
 internal structure to store gds information More...
struct  GdsCell
 GDSII cell. More...
struct  GdsData
 data type More...
class  GdsDataBase
 GdsDataBase redirects callbacks of GdsDataBaseKernel to ascii callbacks. More...
class  GdsDataBaseKernel
 Kernel callbacks for GdsReader. These callbacks use enum for record_type and data_type, which is faster than ascii callbacks. More...
class  GdsDriver
 High-level wrapper class for GdsReader. Everything is saved in an internal data structure and users only need to provide simple callbacks. More...
class  GdsDriverDataBase
 database for the driver More...
struct  GdsLib
 Top GDSII library. More...
class  GdsReader
 read GDSII More...
struct  GdsRecords
 GDSII records.
The records are numbered with consecutive integers, so we can use simple array to save all the data. More...
struct  GdsSref
 GDSII SREF. More...
struct  GdsText
 GDSII TEXT. More...
class  GdsWriter

Typedefs

typedef int BOOL
 use integer as bool
typedef unsigned char BYTE
 use unsigned char as byte
typedef int int32_t
typedef unsigned int uint32_t

Functions

bool read (GdsDriverDataBase &db, string const &filename)
 API function for GdsDriver.
bool read (GdsDataBaseKernel &db, std::istream &fp)
 read from stream
bool read (GdsDataBaseKernel &db, string const &filename)
 read from file
accessors
const char * gds_record_ascii (int record_type)
const char * gds_record_description (int record_type)
int gds_record_expected_data (int record_type)
const char * gds_data_ascii (int data_type)
const char * gds_data_description (int data_type)
GdsRecords::EnumType gds_record_type (int numeric)
 convert integer to enum
GdsData::EnumType gds_data_type (int numeric)
 convert integer to enum

Detailed Description

namespace for Limbo.GdsParser

Typedef Documentation

◆ BOOL

typedef int GdsParser::BOOL

use integer as bool

Definition at line 41 of file GdsWriter.h.

◆ BYTE

typedef unsigned char GdsParser::BYTE

use unsigned char as byte

Definition at line 43 of file GdsWriter.h.

◆ int32_t

typedef int GdsParser::int32_t

Definition at line 29 of file GdsDriver.h.

◆ uint32_t

typedef unsigned int GdsParser::uint32_t

Definition at line 30 of file GdsDriver.h.

Function Documentation

◆ gds_data_ascii()

const char * GdsParser::gds_data_ascii ( int data_type)
inline
Parameters
data_typedata type
Returns
ASCII

Definition at line 347 of file GdsRecords.h.

◆ gds_data_description()

const char * GdsParser::gds_data_description ( int data_type)
inline
Parameters
data_typedata type
Returns
description

Definition at line 353 of file GdsRecords.h.

◆ gds_data_type()

GdsData::EnumType GdsParser::gds_data_type ( int numeric)
inline

convert integer to enum

Parameters
numericinteger number of GDSII data type
Returns
enum type of GDSII data type

Definition at line 369 of file GdsRecords.h.

◆ gds_record_ascii()

const char * GdsParser::gds_record_ascii ( int record_type)
inline

accessors to enum types and mapping arrays

Parameters
record_typeGDSII record
Returns
ASCII

Definition at line 329 of file GdsRecords.h.

◆ gds_record_description()

const char * GdsParser::gds_record_description ( int record_type)
inline
Parameters
record_typeGDSII record
Returns
description

Definition at line 335 of file GdsRecords.h.

◆ gds_record_expected_data()

int GdsParser::gds_record_expected_data ( int record_type)
inline
Parameters
record_typeGDSII record
Returns
expected data

Definition at line 341 of file GdsRecords.h.

◆ gds_record_type()

GdsRecords::EnumType GdsParser::gds_record_type ( int numeric)
inline

convert integer to enum

Parameters
numericinteger number for GDSII record
Returns
enum type of GDSII record

Definition at line 360 of file GdsRecords.h.

◆ read() [1/3]

bool GdsParser::read ( GdsDataBaseKernel & db,
std::istream & fp )

read from stream

Parameters
dbGDSII database
fpinput stream

◆ read() [2/3]

bool GdsParser::read ( GdsDataBaseKernel & db,
string const & filename )

read from file

Parameters
dbGDSII database
filenameGDSII file

◆ read() [3/3]

bool GdsParser::read ( GdsDriverDataBase & db,
string const & filename )

API function for GdsDriver.

Parameters
dbdatabase
filenameGDSII file