CGM Objects Library
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Larson::Parser Class Reference

Parser – CGM input element parser. More...

#include <Parser.h>

Public Member Functions

 Parser (std::wstring inputFile)
 
long getNextElement (CGMI_DS *pCgmi_ds, long *klass, long *element, long *count)
 get next CGM element More...
 

Public Attributes

long m_error
 
long m_startBytePos
 starting byte position of last parsed element
 
long m_endBytePos
 ending byte position of last parsed element
 
FILE * m_fid
 CGM input file handle.
 

Protected Member Functions

long ctxGetNextElement (CGMI_DS *pCgmi_ds, long *klass, long *elem, long *count)
 

Protected Attributes

unsigned char * m_databuf
 
long m_databuflen
 
unsigned char m_ctxBuf [512]
 
long m_ctxIndex
 
long m_bytesInCtxBuf
 

Detailed Description

Parser – CGM input element parser.

Constructor & Destructor Documentation

Parser::Parser ( std::wstring  inputFile)

Create CGM Parser instance opens inputFile and allocates red buffer, if unable to open set m_error = CGMI_OPEN_ERROR

Member Function Documentation

long Parser::getNextElement ( CGMI_DS pCgmi_ds,
long *  klass,
long *  element,
long *  count 
)

get next CGM element

pCgmi_ds = CGM element data structure klass= class id element = element id count = length of element in bytes


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