Limbo 3.5.4
Loading...
Searching...
No Matches
GdsParser::GdsDB::GdsReader Class Reference

read GDSII file with GDSII database GdsParser::GdsDB::GdsDB More...

#include <GdsIO.h>

Inheritance diagram for GdsParser::GdsDB::GdsReader:
GdsParser::GdsDataBaseKernel

Public Types

typedef GdsDB gdsdb_type
typedef gdsdb_type::coordinate_type coordinate_type
typedef gdsdb_type::point_type point_type

Public Member Functions

 GdsReader (gdsdb_type &db)
 constructor
bool operator() (std::string const &filename)
 API to read GDSII file.
required callbacks in parser
virtual void bit_array_cbk (::GdsParser::GdsRecords::EnumType record_type, ::GdsParser::GdsData::EnumType data_type, std::vector< int > const &vBitArray)
virtual void integer_2_cbk (::GdsParser::GdsRecords::EnumType record_type, ::GdsParser::GdsData::EnumType data_type, std::vector< int > const &vInteger)
virtual void integer_4_cbk (::GdsParser::GdsRecords::EnumType record_type, ::GdsParser::GdsData::EnumType data_type, std::vector< int > const &vInteger)
virtual void real_4_cbk (::GdsParser::GdsRecords::EnumType record_type, ::GdsParser::GdsData::EnumType data_type, std::vector< double > const &vFloat)
virtual void real_8_cbk (::GdsParser::GdsRecords::EnumType record_type, ::GdsParser::GdsData::EnumType data_type, std::vector< double > const &vFloat)
virtual void string_cbk (::GdsParser::GdsRecords::EnumType record_type, ::GdsParser::GdsData::EnumType data_type, std::string const &str)
virtual void begin_end_cbk (::GdsParser::GdsRecords::EnumType record_type)
helper functions for easier processing
void integer_cbk (::GdsParser::GdsRecords::EnumType record_type, ::GdsParser::GdsData::EnumType data_type, std::vector< int > const &vData)
 callbacks for integer
void float_cbk (::GdsParser::GdsRecords::EnumType record_type, ::GdsParser::GdsData::EnumType data_type, std::vector< double > const &vData)
 callbacks for floating point number

Protected Member Functions

void reset ()
 reset all temporary data to default values
void printUnsupportRecords () const
 warn unsupported records

Protected Attributes

std::string m_string
 STRING.
std::string m_sname
 SNAME.
int m_layer
 LAYER.
int m_datatype
 DATATYPE.
int m_pathtype
 PATHTYPE.
int m_texttype
 TEXTTYPE.
int m_spacing [2]
 SPACING.
int m_width
 WIDTH.
int m_columns
 COLROW, number of columns.
int m_rows
 COLROW, number of rows.
int m_bgnextn
 BGNEXTN.
int m_endextn
 ENDEXTN.
double m_angle
 ANGLE.
double m_magnification
 MAG.
int m_strans
 STRANS.
int m_presentation
 PRESENTATION.
std::vector< point_type > m_vPoint
 XY.
::GdsParser::GdsRecords::EnumType m_status
 current record status
int m_fileSize
 file size in bytes
gdsdb_type & m_db
 reference to GDSII database
std::vector< unsigned int > m_vUnsupportRecord
 try to be clean at screen output, record the times of unsupported records

Detailed Description

read GDSII file with GDSII database GdsParser::GdsDB::GdsDB

Definition at line 26 of file GdsIO.h.

Member Typedef Documentation

◆ coordinate_type

typedef gdsdb_type::coordinate_type GdsParser::GdsDB::GdsReader::coordinate_type

Definition at line 31 of file GdsIO.h.

◆ gdsdb_type

typedef GdsDB GdsParser::GdsDB::GdsReader::gdsdb_type

Definition at line 30 of file GdsIO.h.

◆ point_type

typedef gdsdb_type::point_type GdsParser::GdsDB::GdsReader::point_type

Definition at line 32 of file GdsIO.h.

Constructor & Destructor Documentation

◆ GdsReader()

GdsParser::GdsDB::GdsReader::GdsReader ( gdsdb_type & db)
inline

constructor

Parameters
dbGDSII database

Definition at line 37 of file GdsIO.h.

Member Function Documentation

◆ begin_end_cbk()

virtual void GdsParser::GdsDB::GdsReader::begin_end_cbk ( ::GdsParser::GdsRecords::EnumType record_type)
virtual
Parameters
record_typeGDSII record

Implements GdsParser::GdsDataBaseKernel.

◆ bit_array_cbk()

virtual void GdsParser::GdsDB::GdsReader::bit_array_cbk ( ::GdsParser::GdsRecords::EnumType record_type,
::GdsParser::GdsData::EnumType data_type,
std::vector< int > const & vBitArray )
virtual
Parameters
record_typeGDSII record
data_typeGDSII data type
vBitArraydata

◆ float_cbk()

void GdsParser::GdsDB::GdsReader::float_cbk ( ::GdsParser::GdsRecords::EnumType record_type,
::GdsParser::GdsData::EnumType data_type,
std::vector< double > const & vData )

callbacks for floating point number

Parameters
record_typeGDSII record
data_typeGDSII data type
vDatadata

◆ integer_2_cbk()

virtual void GdsParser::GdsDB::GdsReader::integer_2_cbk ( ::GdsParser::GdsRecords::EnumType record_type,
::GdsParser::GdsData::EnumType data_type,
std::vector< int > const & vInteger )
virtual
Parameters
record_typeGDSII record
data_typeGDSII data type
vIntegerdata

◆ integer_4_cbk()

virtual void GdsParser::GdsDB::GdsReader::integer_4_cbk ( ::GdsParser::GdsRecords::EnumType record_type,
::GdsParser::GdsData::EnumType data_type,
std::vector< int > const & vInteger )
virtual
Parameters
record_typeGDSII record
data_typeGDSII data type
vIntegerdata

◆ integer_cbk()

void GdsParser::GdsDB::GdsReader::integer_cbk ( ::GdsParser::GdsRecords::EnumType record_type,
::GdsParser::GdsData::EnumType data_type,
std::vector< int > const & vData )

callbacks for integer

Parameters
record_typeGDSII record
data_typeGDSII data type
vDatadata

◆ operator()()

bool GdsParser::GdsDB::GdsReader::operator() ( std::string const & filename)

API to read GDSII file.

Parameters
filenameGDSII file

◆ real_4_cbk()

virtual void GdsParser::GdsDB::GdsReader::real_4_cbk ( ::GdsParser::GdsRecords::EnumType record_type,
::GdsParser::GdsData::EnumType data_type,
std::vector< double > const & vFloat )
virtual
Parameters
record_typeGDSII record
data_typeGDSII data type
vFloatdata

◆ real_8_cbk()

virtual void GdsParser::GdsDB::GdsReader::real_8_cbk ( ::GdsParser::GdsRecords::EnumType record_type,
::GdsParser::GdsData::EnumType data_type,
std::vector< double > const & vFloat )
virtual
Parameters
record_typeGDSII record
data_typeGDSII data type
vFloatdata

◆ string_cbk()

virtual void GdsParser::GdsDB::GdsReader::string_cbk ( ::GdsParser::GdsRecords::EnumType record_type,
::GdsParser::GdsData::EnumType data_type,
std::string const & str )
virtual
Parameters
record_typeGDSII record
data_typeGDSII data type
strdata

Member Data Documentation

◆ m_angle

double GdsParser::GdsDB::GdsReader::m_angle
protected

ANGLE.

Definition at line 106 of file GdsIO.h.

◆ m_bgnextn

int GdsParser::GdsDB::GdsReader::m_bgnextn
protected

BGNEXTN.

Definition at line 104 of file GdsIO.h.

◆ m_columns

int GdsParser::GdsDB::GdsReader::m_columns
protected

COLROW, number of columns.

Definition at line 102 of file GdsIO.h.

◆ m_datatype

int GdsParser::GdsDB::GdsReader::m_datatype
protected

DATATYPE.

Definition at line 97 of file GdsIO.h.

◆ m_db

gdsdb_type& GdsParser::GdsDB::GdsReader::m_db
protected

reference to GDSII database

Definition at line 114 of file GdsIO.h.

◆ m_endextn

int GdsParser::GdsDB::GdsReader::m_endextn
protected

ENDEXTN.

Definition at line 105 of file GdsIO.h.

◆ m_fileSize

int GdsParser::GdsDB::GdsReader::m_fileSize
protected

file size in bytes

Definition at line 113 of file GdsIO.h.

◆ m_layer

int GdsParser::GdsDB::GdsReader::m_layer
protected

LAYER.

Definition at line 96 of file GdsIO.h.

◆ m_magnification

double GdsParser::GdsDB::GdsReader::m_magnification
protected

MAG.

Definition at line 107 of file GdsIO.h.

◆ m_pathtype

int GdsParser::GdsDB::GdsReader::m_pathtype
protected

PATHTYPE.

Definition at line 98 of file GdsIO.h.

◆ m_presentation

int GdsParser::GdsDB::GdsReader::m_presentation
protected

PRESENTATION.

Definition at line 109 of file GdsIO.h.

◆ m_rows

int GdsParser::GdsDB::GdsReader::m_rows
protected

COLROW, number of rows.

Definition at line 103 of file GdsIO.h.

◆ m_sname

std::string GdsParser::GdsDB::GdsReader::m_sname
protected

SNAME.

Definition at line 95 of file GdsIO.h.

◆ m_spacing

int GdsParser::GdsDB::GdsReader::m_spacing[2]
protected

SPACING.

Definition at line 100 of file GdsIO.h.

◆ m_status

::GdsParser::GdsRecords::EnumType GdsParser::GdsDB::GdsReader::m_status
protected

current record status

Definition at line 112 of file GdsIO.h.

◆ m_strans

int GdsParser::GdsDB::GdsReader::m_strans
protected

STRANS.

Definition at line 108 of file GdsIO.h.

◆ m_string

std::string GdsParser::GdsDB::GdsReader::m_string
protected

STRING.

Definition at line 94 of file GdsIO.h.

◆ m_texttype

int GdsParser::GdsDB::GdsReader::m_texttype
protected

TEXTTYPE.

Definition at line 99 of file GdsIO.h.

◆ m_vPoint

std::vector<point_type> GdsParser::GdsDB::GdsReader::m_vPoint
protected

XY.

Definition at line 110 of file GdsIO.h.

◆ m_vUnsupportRecord

std::vector<unsigned int> GdsParser::GdsDB::GdsReader::m_vUnsupportRecord
protected

try to be clean at screen output, record the times of unsupported records

Definition at line 116 of file GdsIO.h.

◆ m_width

int GdsParser::GdsDB::GdsReader::m_width
protected

WIDTH.

Definition at line 101 of file GdsIO.h.


The documentation for this class was generated from the following file: