libsurf
Programmer's Documentation

Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
StepFileLine Class Reference

Detailed Description

Single line in STEP file.

#include <stepline.h>

Public Member Functions

 StepFileLine (const char *s)
 initialize with pointer to first character
 
StepFileLineoperator++ ()
 increment cursor
 
const char * current () const
 current cursor location
 
void move (const char *pos)
 place cursor at pos
 
uint entityId ()
 retrieve entity ID and place cursor on content after "=("
 
bool skipAttr ()
 skip one attribute
 
const char * entityType ()
 locate entity type
 
uint entityType (std::string &etype)
 copy entity type to buffer
 
bool option () const
 check whether an optional attribute is present
 
bool parseBool (bool &x)
 parse a boolean value
 
bool parseId (StepID &x)
 parse a single entity id
 
bool parseInt (int &x)
 parse single integer value
 
bool parseFloat (double &x)
 parse single float value
 
bool parseString (std::string &attr)
 parse a string attribute
 
bool parseEnum (const char **beg, const char **end)
 parse an enum string
 
bool parseSelect (const char **beg, const char **end)
 parse a select string
 
bool parseIdArray (StepIDArray &x)
 retrieve a list of IDs
 
bool parseIntArray (StepIntArray &x)
 retrieve a list of IDs
 
bool parseFloatArray (StepRealArray &x)
 retrieve a list of real values
 
bool parseStringArray (StepStringArray &x)
 retrieve a list of strings
 
bool parseIDMatrix (StepIDMatrix &x)
 retrieve a matrix of IDs
 
bool parseFloatMatrix (StepRealMatrix &x)
 retrieve a matrix of real values
 
template<int N>
bool parseFloats (double val[])
 retrieve a fixed-size list of real values
 
template<int N>
bool parseInts (int val[])
 retrieve a fixed-size list of integer values
 
template<int N>
bool parseIds (StepID val[])
 retrieve a fixed-size list of integer values
 
bool readAttr (bool &x)
 
bool readAttr (int &x)
 
bool readAttr (StepID &x)
 
bool readAttr (double &x)
 
bool readAttr (std::string &x)
 
bool readAttr (StepIntArray &x)
 
bool readAttr (StepIDArray &x)
 
bool readAttr (StepStringArray &x)
 
bool readAttr (StepRealArray &x)
 
bool readAttr (StepIDMatrix &x)
 
bool readAttr (StepRealMatrix &x)
 
template<int N>
bool readArrayAttr (int x[])
 
template<int N>
bool readArrayAttr (StepID x[])
 
template<int N>
bool readArrayAttr (double x[])
 
template<class EnumType >
bool readEnumArray (std::vector< EnumType > &ev)
 
template<int N, class EnumType >
bool readEnumArray (EnumType ev[])
 
template<class EnumType >
bool readSelectArray (std::vector< EnumType > &ev)
 
template<int N, class EnumType >
bool readSelectArray (EnumType ev[])
 
StepListRep parseList ()
 low-level access : extract a list, set cursor to its end
 

Static Public Member Functions

static void writeAttr (std::ostream &os, bool x)
 write attribute
 
static void writeAttr (std::ostream &os, int x)
 write attribute
 
static void writeAttr (std::ostream &os, StepID x, char cundef='*')
 write attribute
 
static void writeAttr (std::ostream &os, double x)
 write attribute
 
static void writeAttr (std::ostream &os, const std::string &x)
 write attribute
 
static void writeAttr (std::ostream &os, const StepIntArray &x)
 write attribute array
 
static void writeAttr (std::ostream &os, const StepIDArray &x)
 write attribute array
 
static void writeAttr (std::ostream &os, const StepRealArray &x)
 write attribute array
 
static void writeAttr (std::ostream &os, const StepStringArray &x)
 write attribute array
 
static void writeAttr (std::ostream &os, const StepIDMatrix &x)
 write attribute array
 
static void writeAttr (std::ostream &os, const StepRealMatrix &x)
 write attribute array
 
template<int N>
static void writeArrayAttr (std::ostream &os, const int x[])
 
template<int N>
static void writeArrayAttr (std::ostream &os, const StepID x[])
 
template<int N>
static void writeArrayAttr (std::ostream &os, const double x[])
 
template<class EnumType >
static void writeEnumArray (std::ostream &os, const std::vector< EnumType > &ev)
 
template<int N, class EnumType >
static void writeEnumArray (std::ostream &os, const EnumType ev[])
 
template<class EnumType >
static void writeSelectArray (std::ostream &os, const std::vector< EnumType > &ev)
 
template<int N, class EnumType >
static void writeSelectArray (std::ostream &os, const EnumType ev[])
 

Private Member Functions

StepListRep nextList ()
 extract list
 

Private Attributes

const char * cursor
 start of the line More...
 

Member Data Documentation

const char* StepFileLine::cursor
private

start of the line

cursor position


The documentation for this class was generated from the following files:
Generated on Mon Jan 24 2022 03:03:19 for libsurf by   doxygen 1.8.5