libsurf
Programmer's Documentation
Base class of SELECT types in STEP AP203.
#include <step.h>
Public Types | |
enum | ValueType { NotSet, Real, Integer, EntityId, String } |
enumeration to indicate the content type (primitive or entity) | |
Public Member Functions | |
StepSelect () | |
default: invalid object | |
bool | valid () const |
determine whether object was defined or not | |
Public Attributes | |
std::string | m_string |
string content, set only if type == String | |
double | m_real |
real-valued content, set only if type == Real | |
int | m_int |
int-valued content, set only if type == Integer | |
StepID | m_id |
entity content, set only if type == EntityId | |
ValueType | type |
content type indication | |
int | keyIndex |
key index | |
Protected Member Functions | |
bool | read (StepFileLine &line, int lval, const char *stringrep[]) |
extract a SELECT value from line, called by child class | |
void | write (std::ostream &os, const char *stringrep[]) const |
write if defined | |
Private Member Functions | |
bool | parse (const char *key, StepFileLine &line) |
determine content type and parse string | |
Static Private Attributes | |
static const char * | typedefNames [] |
static table with names of AP203 typedefs More... | |
static const ValueType | typedefMap [] |
static table with AP203 typedefs More... | |
|
staticprivate |
static table with AP203 typedefs
|
staticprivate |
static table with names of AP203 typedefs