CFx SDK Documentation  2020SP3
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
OdIfc4x2::IfcSimpleValue Class Reference

#include <Ifc4x2SelectTypes.h>

Inheritance diagram for OdIfc4x2::IfcSimpleValue:
OdDAI::OdSelect

Public Types

enum  eIfcSimpleValue {
  kIfcSimpleValue_unset, kIfcSimpleValue_IfcBinary, kIfcSimpleValue_IfcBoolean, kIfcSimpleValue_IfcDate,
  kIfcSimpleValue_IfcDateTime, kIfcSimpleValue_IfcDuration, kIfcSimpleValue_IfcIdentifier, kIfcSimpleValue_IfcInteger,
  kIfcSimpleValue_IfcLabel, kIfcSimpleValue_IfcLogical, kIfcSimpleValue_IfcPositiveInteger, kIfcSimpleValue_IfcReal,
  kIfcSimpleValue_IfcText, kIfcSimpleValue_IfcTime, kIfcSimpleValue_IfcTimeStamp
}
 
- Public Types inherited from OdDAI::OdSelect
enum  OdSelectKind {
  kUnset = 0, kObjectId = 1, kInt32 = 2, kBoolean = 3,
  kDouble = 4, kBinary = 5, kLogical = 6, kObjectIdArray = 7,
  kInt32Array = 8, kDoubleArray = 9, kAnsiString = 10
}
 

Public Member Functions

 IfcSimpleValue ()
 
 IfcSimpleValue (const IfcSimpleValue &other)
 
virtual OdResult readTypedField (const OdAnsiString &typeDef, OdDAI::OdSpfFilerBase *rdFiler)
 
virtual OdResult writeTypedField (OdDAI::OdSpfFilerBase *wrFiler) const
 
void _d (eIfcSimpleValue determinant)
 
virtual long _d () const
 
virtual const OdAnsiString underlyingTypeName () const
 
virtual bool underlyingTypeName (OdAnsiString typeName)
 
virtual eIfcSimpleValue underlyingTypeByName (OdAnsiString typeName)
 
virtual int exists () const
 
- Public Member Functions inherited from OdDAI::OdSelect
 OdSelect (const OdSelect &other)
 
 OdSelect ()
 
virtual ~OdSelect ()
 
OdSelectoperator= (const OdSelect &other)
 
virtual void nullify ()
 
OdSelectKind kind () const
 
void setHandle (OdDAIObjectId val)
 
void setInt32 (int val)
 
void setBool (bool val)
 
void setDouble (double val)
 
void setString (OdAnsiString &val)
 
void setBINARY (BINARY &val)
 
void setLogical (OdLogical &val)
 
void setInt32Array (OdArray< int > &val)
 
void setHandleArray (OdArray< OdDAIObjectId > &val)
 
void setDoubleArray (OdArray< double > &val)
 
bool getInt32 (int &ret) const
 
bool getDouble (double &ret) const
 
bool getBool (bool &ret) const
 
bool getString (OdAnsiString &ret) const
 
bool getHandle (OdDAIObjectId &res) const
 
OdDAIObjectId getHandle () const
 
bool getLogical (OdLogical &ret) const
 
bool getBINARY (OdAnsiString &res) const
 
bool getInt32Array (OdArray< int > &res) const
 
bool getHandleArray (OdArray< OdDAIObjectId > &res) const
 
bool getDoubleArray (OdArray< double > &res) const
 
bool getBINARY (char *&res) const
 
OdResult in (OdSpfFilerBase *rdFiler, bool opt=false, bool comma_needed=true)
 
void out (OdSpfFilerBase *wrFiler, bool opt=false, bool comma_needed=true)
 

Static Public Attributes

static const OdAnsiString sIfcBinary
 
static const OdAnsiString sIfcBoolean
 
static const OdAnsiString sIfcDate
 
static const OdAnsiString sIfcDateTime
 
static const OdAnsiString sIfcDuration
 
static const OdAnsiString sIfcIdentifier
 
static const OdAnsiString sIfcInteger
 
static const OdAnsiString sIfcLabel
 
static const OdAnsiString sIfcLogical
 
static const OdAnsiString sIfcPositiveInteger
 
static const OdAnsiString sIfcReal
 
static const OdAnsiString sIfcText
 
static const OdAnsiString sIfcTime
 
static const OdAnsiString sIfcTimeStamp
 

Protected Member Functions

virtual void setHandleD ()
 
virtual void unset ()
 
- Protected Member Functions inherited from OdDAI::OdSelect
virtual OdResult readTypedField (const OdAnsiString &typeDef, OdSpfFilerBase *rdFiler)
 
virtual OdResult writeTypedField (OdSpfFilerBase *wrFiler) const
 

Protected Attributes

eIfcSimpleValue m_determinant
 
- Protected Attributes inherited from OdDAI::OdSelect
OdSelectKind m_kind
 
union {
   OdUInt64   m_hndl
 
   int   m_int
 
   bool   m_bool
 
   double   m_dbl
 
   void *   m_ptr
 
}; 
 

Detailed Description

Definition at line 1885 of file Ifc4x2SelectTypes.h.

Member Enumeration Documentation

◆ eIfcSimpleValue

Enumerator
kIfcSimpleValue_unset 
kIfcSimpleValue_IfcBinary 
kIfcSimpleValue_IfcBoolean 
kIfcSimpleValue_IfcDate 
kIfcSimpleValue_IfcDateTime 
kIfcSimpleValue_IfcDuration 
kIfcSimpleValue_IfcIdentifier 
kIfcSimpleValue_IfcInteger 
kIfcSimpleValue_IfcLabel 
kIfcSimpleValue_IfcLogical 
kIfcSimpleValue_IfcPositiveInteger 
kIfcSimpleValue_IfcReal 
kIfcSimpleValue_IfcText 
kIfcSimpleValue_IfcTime 
kIfcSimpleValue_IfcTimeStamp 

Definition at line 1911 of file Ifc4x2SelectTypes.h.

Constructor & Destructor Documentation

◆ IfcSimpleValue() [1/2]

OdIfc4x2::IfcSimpleValue::IfcSimpleValue ( )
inline

Definition at line 1889 of file Ifc4x2SelectTypes.h.

◆ IfcSimpleValue() [2/2]

OdIfc4x2::IfcSimpleValue::IfcSimpleValue ( const IfcSimpleValue other)
inline

Definition at line 1890 of file Ifc4x2SelectTypes.h.

Member Function Documentation

◆ _d() [1/2]

virtual long OdIfc4x2::IfcSimpleValue::_d ( ) const
inlinevirtual

Retrieves the "Select" data type determinant.

Returns
Returns a long value that represents the type determinant.

Implements OdDAI::OdSelect.

Definition at line 1930 of file Ifc4x2SelectTypes.h.

◆ _d() [2/2]

void OdIfc4x2::IfcSimpleValue::_d ( eIfcSimpleValue  determinant)
inline

Definition at line 1929 of file Ifc4x2SelectTypes.h.

◆ exists()

virtual int OdIfc4x2::IfcSimpleValue::exists ( ) const
inlinevirtual

Determines whether the value is set for the "Select" datatype instance.

Returns
Returns 1 if the value is set.

Implements OdDAI::OdSelect.

Definition at line 1936 of file Ifc4x2SelectTypes.h.

◆ readTypedField()

virtual OdResult OdIfc4x2::IfcSimpleValue::readTypedField ( const OdAnsiString &  typeDef,
OdDAI::OdSpfFilerBase *  rdFiler 
)
virtual

◆ setHandleD()

virtual void OdIfc4x2::IfcSimpleValue::setHandleD ( )
inlineprotectedvirtual

Sets the specific underlying type enum for the stored handle.

Implements OdDAI::OdSelect.

Definition at line 1940 of file Ifc4x2SelectTypes.h.

◆ underlyingTypeByName()

virtual eIfcSimpleValue OdIfc4x2::IfcSimpleValue::underlyingTypeByName ( OdAnsiString  typeName)
virtual

◆ underlyingTypeName() [1/2]

virtual const OdAnsiString OdIfc4x2::IfcSimpleValue::underlyingTypeName ( ) const
virtual

Retrieves the name of the current underlying type.

Returns
Returns an ANSI string that contains the name of the underlying type.

Implements OdDAI::OdSelect.

◆ underlyingTypeName() [2/2]

virtual bool OdIfc4x2::IfcSimpleValue::underlyingTypeName ( OdAnsiString  typeName)
virtual

Sets a new name of the underlying type.

Parameters
typeName[in] An ANSI string that contains the new name.
Returns
Returns false if the new type name is incorrect for the "Select" data type.

Implements OdDAI::OdSelect.

◆ unset()

virtual void OdIfc4x2::IfcSimpleValue::unset ( )
inlineprotectedvirtual

Unsets the discriminant of the derived type.

Implements OdDAI::OdSelect.

Definition at line 1942 of file Ifc4x2SelectTypes.h.

◆ writeTypedField()

virtual OdResult OdIfc4x2::IfcSimpleValue::writeTypedField ( OdDAI::OdSpfFilerBase *  wrFiler) const
virtual

Member Data Documentation

◆ m_determinant

eIfcSimpleValue OdIfc4x2::IfcSimpleValue::m_determinant
protected

Definition at line 1939 of file Ifc4x2SelectTypes.h.

◆ sIfcBinary

const OdAnsiString OdIfc4x2::IfcSimpleValue::sIfcBinary
static

Definition at line 1896 of file Ifc4x2SelectTypes.h.

◆ sIfcBoolean

const OdAnsiString OdIfc4x2::IfcSimpleValue::sIfcBoolean
static

Definition at line 1897 of file Ifc4x2SelectTypes.h.

◆ sIfcDate

const OdAnsiString OdIfc4x2::IfcSimpleValue::sIfcDate
static

Definition at line 1898 of file Ifc4x2SelectTypes.h.

◆ sIfcDateTime

const OdAnsiString OdIfc4x2::IfcSimpleValue::sIfcDateTime
static

Definition at line 1899 of file Ifc4x2SelectTypes.h.

◆ sIfcDuration

const OdAnsiString OdIfc4x2::IfcSimpleValue::sIfcDuration
static

Definition at line 1900 of file Ifc4x2SelectTypes.h.

◆ sIfcIdentifier

const OdAnsiString OdIfc4x2::IfcSimpleValue::sIfcIdentifier
static

Definition at line 1901 of file Ifc4x2SelectTypes.h.

◆ sIfcInteger

const OdAnsiString OdIfc4x2::IfcSimpleValue::sIfcInteger
static

Definition at line 1902 of file Ifc4x2SelectTypes.h.

◆ sIfcLabel

const OdAnsiString OdIfc4x2::IfcSimpleValue::sIfcLabel
static

Definition at line 1903 of file Ifc4x2SelectTypes.h.

◆ sIfcLogical

const OdAnsiString OdIfc4x2::IfcSimpleValue::sIfcLogical
static

Definition at line 1904 of file Ifc4x2SelectTypes.h.

◆ sIfcPositiveInteger

const OdAnsiString OdIfc4x2::IfcSimpleValue::sIfcPositiveInteger
static

Definition at line 1905 of file Ifc4x2SelectTypes.h.

◆ sIfcReal

const OdAnsiString OdIfc4x2::IfcSimpleValue::sIfcReal
static

Definition at line 1906 of file Ifc4x2SelectTypes.h.

◆ sIfcText

const OdAnsiString OdIfc4x2::IfcSimpleValue::sIfcText
static

Definition at line 1907 of file Ifc4x2SelectTypes.h.

◆ sIfcTime

const OdAnsiString OdIfc4x2::IfcSimpleValue::sIfcTime
static

Definition at line 1908 of file Ifc4x2SelectTypes.h.

◆ sIfcTimeStamp

const OdAnsiString OdIfc4x2::IfcSimpleValue::sIfcTimeStamp
static

Definition at line 1909 of file Ifc4x2SelectTypes.h.


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