libsurf
Programmer's Documentation

Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | Static Private Attributes | List of all members
StepSelect Class Reference

Detailed Description

Base class of SELECT types in STEP AP203.

See Also
StepFile

#include <step.h>

Inheritance diagram for StepSelect:
[legend]
Collaboration diagram for StepSelect:
[legend]

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...
 

Member Data Documentation

const StepSelect::ValueType StepSelect::typedefMap
staticprivate
Initial value:
=
{
StepSelect::Integer, StepSelect::String, StepSelect::Integer,
StepSelect::Integer, StepSelect::Integer, StepSelect::Real, StepSelect::Real,
StepSelect::String, StepSelect::Real, StepSelect::Real, StepSelect::Real,
StepSelect::Real, StepSelect::Real, StepSelect::Integer, StepSelect::Integer,
StepSelect::Integer, StepSelect::Integer, StepSelect::Real, StepSelect::Real,
StepSelect::Real, StepSelect::Real, StepSelect::Integer, StepSelect::String,
StepSelect::String
}

static table with AP203 typedefs

const char * StepSelect::typedefNames
staticprivate
Initial value:
=
{
"HOUR_IN_DAY",
"TEXT",
"DIMENSION_COUNT",
"MONTH_IN_YEAR_NUMBER",
"MINUTE_IN_HOUR",
"POSITIVE_LENGTH_MEASURE",
"SECOND_IN_MINUTE",
"LABEL",
"PLANE_ANGLE_MEASURE",
"MASS_MEASURE",
"POSITIVE_PLANE_ANGLE_MEASURE",
"VOLUME_MEASURE",
"CONTEXT_DEPENDENT_MEASURE",
"DAY_IN_WEEK_NUMBER",
"DAY_IN_MONTH_NUMBER",
"WEEK_IN_YEAR_NUMBER",
"YEAR_NUMBER",
"SOLID_ANGLE_MEASURE",
"LENGTH_MEASURE",
"PARAMETER_VALUE",
"AREA_MEASURE",
"DAY_IN_YEAR_NUMBER",
"DESCRIPTIVE_MEASURE",
"IDENTIFIER"
}

static table with names of AP203 typedefs


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