CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdDbEvalVariant Class Reference

#include <DbEvalVariant.h>

Inheritance diagram for OdDbEvalVariant:
OdResBuf OdRxObject

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdDbEvalVariant)
 
 OdDbEvalVariant ()
 
 ~OdDbEvalVariant ()
 
OdDbEvalVariantoperator= (const OdResBuf &rb)
 
OdDbEvalVariantoperator= (double dVal)
 
OdDbEvalVariantoperator= (short iVal)
 
OdDbEvalVariantoperator= (int lVal)
 
OdDbEvalVariantoperator= (const OdDbEvalVariant &other)
 
OdDbEvalVariantoperator= (const OdDbObjectId &id)
 
OdDbEvalVariantoperator= (const OdGePoint2d &pt)
 
OdDbEvalVariantoperator= (const OdGePoint3d &pt)
 
OdDbEvalVariantoperator= (const OdString &str)
 
void clear ()
 
void copyFrom (const OdRxObject *pOther)
 
bool operator< (const OdDbEvalVariant &val) const
 
bool operator> (const OdDbEvalVariant &val) const
 
bool operator<= (const OdDbEvalVariant &val) const
 
bool operator>= (const OdDbEvalVariant &val) const
 
bool operator== (const OdDbEvalVariant &val) const
 
bool operator!= (const OdDbEvalVariant &val) const
 
OdResult dwgInFields (OdDbDwgFiler *pFiler)
 
void dwgOutFields (OdDbDwgFiler *pFiler) const
 
OdResult dxfInFields (OdDbDxfFiler *pFiler)
 
void dxfOutFields (OdDbDxfFiler *pFiler) const
 
DwgDataType getType () const
 
OdResult setValue (int groupcode, const double value)
 
OdResult setValue (int groupcode, const short value)
 
OdResult setValue (int groupcode, const int value)
 
OdResult setValue (int groupcode, const OdString &value)
 
OdResult setValue (int groupcode, const OdDbObjectId value)
 
OdResult setValue (int groupcode, const OdGePoint3d &value)
 
OdResult setValue (int groupcode, const OdGePoint2d &value)
 
OdResult getValue (double &value) const
 
OdResult getValue (short &value) const
 
OdResult getValue (int &value) const
 
OdResult getValue (OdString &value) const
 
OdResult getValue (OdDbObjectId &value, OdDbDatabase *pDb=NULL) const
 
OdResult getValue (OdGePoint3d &value) const
 
OdResult getValue (OdGePoint2d &value) const
 
OdResult fxGetValue (double &value) const
 
int getAsInt () const
 
double getAsDouble () const
 
- Public Member Functions inherited from OdResBuf
 ODRX_DECLARE_MEMBERS (OdResBuf)
 
 ~OdResBuf ()
 
void copyFrom (const OdRxObject *pRb)
 
bool operator== (const OdResBuf &Rb) const
 
bool operator!= (const OdResBuf &Rb) const
 
int restype () const
 
void setRestype (int resType)
 
OdResBufPtr next () const
 
OdResBufPtr last () const
 
OdResBufPtr insert (OdResBuf *pRb)
 
OdResBufPtr setNext (OdResBuf *pRb)
 
OdString getString () const
 
void setString (const OdString &sValue)
 
bool getBool () const
 
void setBool (bool bValue)
 
OdInt8 getInt8 () const
 
void setInt8 (OdInt8 iValue)
 
OdInt16 getInt16 () const
 
void setInt16 (OdInt16 iValue)
 
OdInt32 getInt32 () const
 
void setInt32 (OdInt32 iValue)
 
OdInt64 getInt64 () const
 
void setInt64 (OdInt64 iValue)
 
double getDouble () const
 
void setDouble (double realValue)
 
const OdGePoint2dgetPoint2d () const
 
void setPoint2d (const OdGePoint2d &gePoint)
 
const OdGePoint3dgetPoint3d () const
 
void setPoint3d (const OdGePoint3d &gePoint)
 
const OdGeVector2dgetVector2d () const
 
void setVector2d (const OdGeVector2d &geVector)
 
const OdGeVector3dgetVector3d () const
 
void setVector3d (const OdGeVector3d &val)
 
const OdBinaryDatagetBinaryChunk () const
 
void setBinaryChunk (const OdBinaryData &bChunk)
 
const OdCmColorgetColor () const
 
void setColor (const OdCmColor &cmColor)
 
OdResBufPtr getResBuf () const
 
void setResBuf (const OdResBuf *pResBuf)
 
OdDbHandle getHandle () const
 
void setHandle (const OdDbHandle &vHandle)
 
const OdDbObjectIdgetEntName () const
 
void setObjectId (const OdDbObjectId &idObject)
 
OdDbObjectId getObjectId (const OdDbDatabase *pDb) const
 
OdDbSelectionSetPtr getPickSet () const
 
void setPickSet (const OdDbSelectionSet *pSSet)
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
virtual void addRef ()=0
 
virtual void release ()=0
 
virtual long numRefs () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Static Public Member Functions

static OdDbEvalVariantPtr init (const OdDbEvalVariant &other)
 
static OdDbEvalVariantPtr init (const OdDbEvalVariant *pOther)
 
static OdDbEvalVariantPtr init (double dVal)
 
static OdDbEvalVariantPtr init (short iVal)
 
static OdDbEvalVariantPtr init (int lVal)
 
static OdDbEvalVariantPtr init (const OdDbObjectId &id)
 
static OdDbEvalVariantPtr init (const OdGePoint2d &pt)
 
static OdDbEvalVariantPtr init (const OdGePoint3d &pt)
 
static OdDbEvalVariantPtr init (const OdResBuf &rb)
 
static OdDbEvalVariantPtr init (const OdString &str)
 
- Static Public Member Functions inherited from OdResBuf
static OdResBufPtr newRb (int resType=OdResBuf::kRtNone)
 
static OdResBufPtr newRb (int resType, bool resVal)
 
static OdResBufPtr newRb (int resType, OdInt8 resVal)
 
static OdResBufPtr newRb (int resType, OdUInt8 resVal)
 
static OdResBufPtr newRb (int resType, OdInt16 resVal)
 
static OdResBufPtr newRb (int resType, OdUInt16 resVal)
 
static OdResBufPtr newRb (int resType, OdInt32 resVal)
 
static OdResBufPtr newRb (int resType, OdUInt32 resVal)
 
static OdResBufPtr newRb (int resType, OdInt64 resVal)
 
static OdResBufPtr newRb (int resType, OdUInt64 resVal)
 
static OdResBufPtr newRb (int resType, double resVal)
 
static OdResBufPtr newRb (int resType, const OdGePoint2d &resVal)
 
static OdResBufPtr newRb (int resType, const OdGePoint3d &resVal)
 
static OdResBufPtr newRb (int resType, const OdGeVector2d &resVal)
 
static OdResBufPtr newRb (int resType, const OdGeVector3d &resVal)
 
static OdResBufPtr newRb (int resType, const OdString &resVal)
 
static OdResBufPtr newRb (int resType, const OdChar *resVal)
 
static OdResBufPtr newRb (int resType, const OdCmColor &resVal)
 
static OdResBufPtr newRb (int resType, const OdDbObjectId &id)
 
static OdResBufPtr newRb (int resType, const OdDbSelectionSet *pSSet)
 
static OdResBufPtr newRb (int resType, const OdResBuf *pNestedRb)
 
static void setAssertIndexByNewRb (int index)
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 
static void rxInit ()
 
static void rxUninit ()
 

Protected Attributes

DwgDataType m_type
 
- Protected Attributes inherited from OdResBuf
int m_nCode
 
Data m_data
 
OdResBufPtr m_pNext
 

Additional Inherited Members

- Public Types inherited from OdResBuf
enum  ValueType {
  kRtNorm = 5100 , kRtMemErr = -5000 , kRtError = -5001 , kRtCan = -5002 ,
  kRtRej = -5003 , kRtFail = -5004 , kRtKword = -5005 , kRtInputTruncated = -5008 ,
  kRtNone = 5000 , kRtDouble = 5001 , kRtPoint2d = 5002 , kRtInt16 = 5003 ,
  kRtAngle = 5004 , kRtString = 5005 , kRtEntName = 5006 , kRtPickSet = 5007 ,
  kRtOrient = 5008 , kRtPoint3d = 5009 , kRtInt32 = 5010 , kRtColor = 5011 ,
  kRtVoid = 5014 , kRtListBeg = 5016 , kRtListEnd = 5017 , kRtDote = 5018 ,
  kRtNil = 5019 , kRtDXF0 = 5020 , kRtT = 5021 , kRtResBuf = 5023 ,
  kRtBool = 290 , kRtInt8 = 280 , kRtVector2d = kRtPoint2d , kRtVector3d = kRtPoint3d ,
  kRtBinaryChunk = 310 , kRtHandle = 320 , kRtObjectId = 330 , kRtSoftPointerId = 330 ,
  kRtHardPointerId = 340 , kRtSoftOwnershipId = 350 , kRtHardOwnershipId = 360 , kDxfInvalid = -9999 ,
  kDxfXDictionary = -6 , kDxfPReactors = -5 , kDxfOperator = -4 , kDxfXDataStart = -3 ,
  kDxfHeaderId = -2 , kDxfFirstEntId = -2 , kDxfEnd = -1 , kDxfStart = 0 ,
  kDxfText = 1 , kDxfXRefPath = 1 , kDxfShapeName = 2 , kDxfBlockName = 2 ,
  kDxfAttributeTag = 2 , kDxfSymbolTableName = 2 , kDxfMstyleName = 2 , kDxfSymTableRecName = 2 ,
  kDxfAttributePrompt = 3 , kDxfDimStyleName = 3 , kDxfLinetypeProse = 3 , kDxfTextFontFile = 3 ,
  kDxfDescription = 3 , kDxfDimPostStr = 3 , kDxfTextBigFontFile = 4 , kDxfDimAPostStr = 4 ,
  kDxfCLShapeName = 4 , kDxfSymTableRecComments = 4 , kDxfHandle = 5 , kDxfDimBlk = 5 ,
  kDxfDimBlk1 = 6 , kDxfLinetypeName = 6 , kDxfDimBlk2 = 7 , kDxfTextStyleName = 7 ,
  kDxfLayerName = 8 , kDxfCLShapeText = 9 , kDxfXCoord = 10 , kDxfYCoord = 20 ,
  kDxfZCoord = 30 , kDxfElevation = 38 , kDxfThickness = 39 , kDxfReal = 40 ,
  kDxfViewportHeight = 40 , kDxfTxtSize = 40 , kDxfTxtStyleXScale = 41 , kDxfViewWidth = 41 ,
  kDxfViewportAspect = 41 , kDxfTxtStylePSize = 42 , kDxfViewLensLength = 42 , kDxfViewFrontClip = 43 ,
  kDxfViewBackClip = 44 , kDxfShapeXOffset = 44 , kDxfShapeYOffset = 45 , kDxfViewHeight = 45 ,
  kDxfShapeScale = 46 , kDxfPixelScale = 47 , kDxfLinetypeScale = 48 , kDxfDashLength = 49 ,
  kDxfMlineOffset = 49 , kDxfLinetypeElement = 49 , kDxfAngle = 50 , kDxfViewportSnapAngle = 50 ,
  kDxfViewportTwist = 51 , kDxfVisibility = 60 , kDxfLayerLinetype = 61 , kDxfColor = 62 ,
  kDxfHasSubentities = 66 , kDxfViewportVisibility = 67 , kDxfViewportActive = 68 , kDxfViewportNumber = 69 ,
  kDxfInt16 = 70 , kDxfViewMode = 71 , kDxfCircleSides = 72 , kDxfViewportZoom = 73 ,
  kDxfViewportIcon = 74 , kDxfViewportSnap = 75 , kDxfViewportGrid = 76 , kDxfViewportSnapStyle = 77 ,
  kDxfViewportSnapPair = 78 , kDxfRegAppFlags = 71 , kDxfTxtStyleFlags = 71 , kDxfLinetypeAlign = 72 ,
  kDxfLinetypePDC = 73 , kDxfInt32 = 90 , kDxfSubclass = 100 , kDxfEmbeddedObjectStart = 101 ,
  kDxfControlString = 102 , kDxfDimVarHandle = 105 , kDxfUCSOrg = 110 , kDxfUCSOriX = 111 ,
  kDxfUCSOriY = 112 , kDxfXReal = 140 , kDxfInt64 = 160 , kDxfXInt16 = 170 ,
  kDxfNormalX = 210 , kDxfNormalY = 220 , kDxfNormalZ = 230 , kDxfXXInt16 = 270 ,
  kDxfInt8 = 280 , kDxfRenderMode = 281 , kDxfBool = 290 , kDxfXTextString = 300 ,
  kDxfBinaryChunk = 310 , kDxfArbHandle = 320 , kDxfSoftPointerId = 330 , kDxfHardPointerId = 340 ,
  kDxfSoftOwnershipId = 350 , kDxfHardOwnershipId = 360 , kDxfLineWeight = 370 , kDxfPlotStyleNameType = 380 ,
  kDxfPlotStyleNameId = 390 , kDxfXXXInt16 = 400 , kDxfLayoutName = 410 , kDxfComment = 999 ,
  kDxfXdAsciiString = 1000 , kDxfRegAppName = 1001 , kDxfXdControlString = 1002 , kDxfXdLayerName = 1003 ,
  kDxfXdBinaryChunk = 1004 , kDxfXdHandle = 1005 , kDxfXdXCoord = 1010 , kDxfXdYCoord = 1020 ,
  kDxfXdZCoord = 1030 , kDxfXdWorldXCoord = 1011 , kDxfXdWorldYCoord = 1021 , kDxfXdWorldZCoord = 1031 ,
  kDxfXdWorldXDisp = 1012 , kDxfXdWorldYDisp = 1022 , kDxfXdWorldZDisp = 1032 , kDxfXdWorldXDir = 1013 ,
  kDxfXdWorldYDir = 1023 , kDxfXdWorldZDir = 1033 , kDxfXdReal = 1040 , kDxfXdDist = 1041 ,
  kDxfXdScale = 1042 , kDxfXdInteger16 = 1070 , kDxfXdInteger32 = 1071
}
 
- Protected Member Functions inherited from OdResBuf
 OdResBuf ()
 

Detailed Description

This class represents a wrapper for a resbuf structure.

<group Other_Classes>

Definition at line 63 of file DbEvalVariant.h.

Constructor & Destructor Documentation

◆ OdDbEvalVariant()

OdDbEvalVariant::OdDbEvalVariant ( )

Constructor creates an instance of this class.

◆ ~OdDbEvalVariant()

OdDbEvalVariant::~OdDbEvalVariant ( )

Destructor destroys an instance of this class.

Member Function Documentation

◆ clear()

void OdDbEvalVariant::clear ( )

Clears the content of this variable and frees any allocated memory.

◆ copyFrom()

void OdDbEvalVariant::copyFrom ( const OdRxObject * pOther)
virtual

Copies the content of the variable from another rx-object.

Reimplemented from OdRxObject.

◆ dwgInFields()

OdResult OdDbEvalVariant::dwgInFields ( OdDbDwgFiler * pFiler)

Reads the .dwg file data of this object.

Parameters
pFiler[in] Filer object from which data are read.
Remarks
Returns the filer status.

◆ dwgOutFields()

void OdDbEvalVariant::dwgOutFields ( OdDbDwgFiler * pFiler) const

Writes the .dwg file data of this object.

Parameters
pFiler[in] Pointer to the filer to which data are written.

◆ dxfInFields()

OdResult OdDbEvalVariant::dxfInFields ( OdDbDxfFiler * pFiler)

Reads the .dxf file data of this object.

Parameters
pFiler[in] Filer object from which data are read.
Remarks
Returns the filer status.

◆ dxfOutFields()

void OdDbEvalVariant::dxfOutFields ( OdDbDxfFiler * pFiler) const

Writes the .dxf file data of this object.

Parameters
pFiler[in] Pointer to the filer to which data are written.

◆ fxGetValue()

OdResult OdDbEvalVariant::fxGetValue ( double & value) const

◆ getAsDouble()

double OdDbEvalVariant::getAsDouble ( ) const

Gets the value of this variable transformed to 'double'.

◆ getAsInt()

int OdDbEvalVariant::getAsInt ( ) const

Gets the value of this variable transformed to 'int'.

◆ getType()

DwgDataType OdDbEvalVariant::getType ( ) const

Returns the data type of this variable.

◆ getValue() [1/7]

OdResult OdDbEvalVariant::getValue ( double & value) const

Gets the content of this variable.

◆ getValue() [2/7]

OdResult OdDbEvalVariant::getValue ( int & value) const

Gets the content of this variable.

◆ getValue() [3/7]

OdResult OdDbEvalVariant::getValue ( OdDbObjectId & value,
OdDbDatabase * pDb = NULL ) const

Gets the content of this variable.

◆ getValue() [4/7]

OdResult OdDbEvalVariant::getValue ( OdGePoint2d & value) const

Gets the content of this variable.

◆ getValue() [5/7]

OdResult OdDbEvalVariant::getValue ( OdGePoint3d & value) const

Gets the content of this variable.

◆ getValue() [6/7]

OdResult OdDbEvalVariant::getValue ( OdString & value) const

Gets the content of this variable.

◆ getValue() [7/7]

OdResult OdDbEvalVariant::getValue ( short & value) const

Gets the content of this variable.

◆ init() [1/10]

static OdDbEvalVariantPtr OdDbEvalVariant::init ( const OdDbEvalVariant & other)
static

Initializes the content of this variable.

◆ init() [2/10]

static OdDbEvalVariantPtr OdDbEvalVariant::init ( const OdDbEvalVariant * pOther)
static

Initializes the content of this variable.

◆ init() [3/10]

static OdDbEvalVariantPtr OdDbEvalVariant::init ( const OdDbObjectId & id)
static

Initializes the content of this variable.

◆ init() [4/10]

static OdDbEvalVariantPtr OdDbEvalVariant::init ( const OdGePoint2d & pt)
static

Initializes the content of this variable.

◆ init() [5/10]

static OdDbEvalVariantPtr OdDbEvalVariant::init ( const OdGePoint3d & pt)
static

Initializes the content of this variable.

◆ init() [6/10]

static OdDbEvalVariantPtr OdDbEvalVariant::init ( const OdResBuf & rb)
static

Initializes the content of this variable.

◆ init() [7/10]

static OdDbEvalVariantPtr OdDbEvalVariant::init ( const OdString & str)
static

Initializes the content of this variable.

◆ init() [8/10]

static OdDbEvalVariantPtr OdDbEvalVariant::init ( double dVal)
static

Initializes the content of this variable.

◆ init() [9/10]

static OdDbEvalVariantPtr OdDbEvalVariant::init ( int lVal)
static

Initializes the content of this variable.

◆ init() [10/10]

static OdDbEvalVariantPtr OdDbEvalVariant::init ( short iVal)
static

Initializes the content of this variable.

◆ ODRX_DECLARE_MEMBERS()

OdDbEvalVariant::ODRX_DECLARE_MEMBERS ( OdDbEvalVariant )

◆ operator!=()

bool OdDbEvalVariant::operator!= ( const OdDbEvalVariant & val) const

Checks whether content of this variable is not equal to the content of a given variable.

◆ operator<()

bool OdDbEvalVariant::operator< ( const OdDbEvalVariant & val) const

Checks whether content of this variable less than content of a given variable.

◆ operator<=()

bool OdDbEvalVariant::operator<= ( const OdDbEvalVariant & val) const

Checks whether content of this variable equal to or less than content of a given variable.

◆ operator=() [1/9]

OdDbEvalVariant & OdDbEvalVariant::operator= ( const OdDbEvalVariant & other)

◆ operator=() [2/9]

OdDbEvalVariant & OdDbEvalVariant::operator= ( const OdDbObjectId & id)

◆ operator=() [3/9]

OdDbEvalVariant & OdDbEvalVariant::operator= ( const OdGePoint2d & pt)

◆ operator=() [4/9]

OdDbEvalVariant & OdDbEvalVariant::operator= ( const OdGePoint3d & pt)

◆ operator=() [5/9]

OdDbEvalVariant & OdDbEvalVariant::operator= ( const OdResBuf & rb)

Sets the content of this variable using a given value.

◆ operator=() [6/9]

OdDbEvalVariant & OdDbEvalVariant::operator= ( const OdString & str)

◆ operator=() [7/9]

OdDbEvalVariant & OdDbEvalVariant::operator= ( double dVal)

◆ operator=() [8/9]

OdDbEvalVariant & OdDbEvalVariant::operator= ( int lVal)

◆ operator=() [9/9]

OdDbEvalVariant & OdDbEvalVariant::operator= ( short iVal)

◆ operator==()

bool OdDbEvalVariant::operator== ( const OdDbEvalVariant & val) const

Checks whether content of this variable is equal to the content of a given variable.

◆ operator>()

bool OdDbEvalVariant::operator> ( const OdDbEvalVariant & val) const

Checks whether content of this variable more than content of a given variable.

◆ operator>=()

bool OdDbEvalVariant::operator>= ( const OdDbEvalVariant & val) const

Checks whether content of this variable equal to or more than content of a given variable.

◆ setValue() [1/7]

OdResult OdDbEvalVariant::setValue ( int groupcode,
const double value )

Sets the content of this variable using a given value.

◆ setValue() [2/7]

OdResult OdDbEvalVariant::setValue ( int groupcode,
const int value )

Sets the content of this variable using a given value.

◆ setValue() [3/7]

OdResult OdDbEvalVariant::setValue ( int groupcode,
const OdDbObjectId value )

Sets the content of this variable using a given value.

◆ setValue() [4/7]

OdResult OdDbEvalVariant::setValue ( int groupcode,
const OdGePoint2d & value )

Sets the content of this variable using a given value.

◆ setValue() [5/7]

OdResult OdDbEvalVariant::setValue ( int groupcode,
const OdGePoint3d & value )

Sets the content of this variable using a given value.

◆ setValue() [6/7]

OdResult OdDbEvalVariant::setValue ( int groupcode,
const OdString & value )

Sets the content of this variable using a given value.

◆ setValue() [7/7]

OdResult OdDbEvalVariant::setValue ( int groupcode,
const short value )

Sets the content of this variable using a given value.

Member Data Documentation

◆ m_type

DwgDataType OdDbEvalVariant::m_type
protected

DOM

Definition at line 307 of file DbEvalVariant.h.


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