Limbo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
GdsParser::GdsReader Class Reference

read GDSII More...

#include <GdsReader.h>

Public Member Functions

 GdsReader (GdsDataBaseKernel &db)
 constructor More...
 
 ~GdsReader ()
 destructor
 
bool operator() (const char *filename)
 read from file More...
 
bool operator() (std::istream &fp)
 read from stream More...
 

Protected Member Functions

void find_record_type (int numeric, GdsRecords::EnumType &record_name, int &expected_data_type)
 find record More...
 
void find_data_type (int numeric, GdsData::EnumType &data_name)
 find data type More...
 
void print_bit_array_comments (GdsRecords::EnumType enum_record_type, int bit_array, int indent_amount)
 print comments More...
 
const char * gds_read (std::istream &fp, int &no_read, std::size_t n)
 

Protected Attributes

GdsDataBaseKernelm_db
 database
 
char * m_buffer
 buffer for reading file
 
char * m_bptr
 start position in buffer
 
std::size_t m_bcap
 buffer capacity
 
std::size_t m_blen
 current buffer size, from m_bptr to m_buffer+m_bcap
 

Detailed Description

read GDSII

Definition at line 149 of file GdsReader.h.

Constructor & Destructor Documentation

GdsParser::GdsReader::GdsReader ( GdsDataBaseKernel db)

constructor

Parameters
dbdatabase

Member Function Documentation

void GdsParser::GdsReader::find_data_type ( int  numeric,
GdsData::EnumType data_name 
)
protected

find data type

Parameters
numericrecord
data_nameenum type of data type
void GdsParser::GdsReader::find_record_type ( int  numeric,
GdsRecords::EnumType record_name,
int &  expected_data_type 
)
protected

find record

Parameters
numericrecord
record_nameenum type of record
expected_data_typeexpected data
const char* GdsParser::GdsReader::gds_read ( std::istream &  fp,
int &  no_read,
std::size_t  n 
)
protected

read n bytes

Parameters
fpfile handler
no_readnumber of bytes read
nnumber of bytes to read
bool GdsParser::GdsReader::operator() ( const char *  filename)

read from file

Parameters
filenamefile name
bool GdsParser::GdsReader::operator() ( std::istream &  fp)

read from stream

Parameters
fpinput stream
void GdsParser::GdsReader::print_bit_array_comments ( GdsRecords::EnumType  enum_record_type,
int  bit_array,
int  indent_amount 
)
protected

print comments

Parameters
enum_record_typeenum type of record
bit_arraybit array
indent_amountamount of indent

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