|
CGM Objects Library
|
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 |
Parser – CGM input element parser.
| 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
| 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
1.8.6