CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
DbEvalVariant.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24#ifndef OdDbEvalVariant_INCLUDED_
25#define OdDbEvalVariant_INCLUDED_
26
27#include "ResBuf.h"
28#include "DbFiler.h"
29
30#include "TD_PackPush.h"
31
32class OdDbEvalVariant;
33
35
57
64{
65public:
67
72
77
82
87
91 static OdDbEvalVariantPtr init(double dVal);
92
96 static OdDbEvalVariantPtr init(short iVal);
97//static OdDbEvalVariantPtr init(const ACHAR* szVal);
98
102 static OdDbEvalVariantPtr init(int lVal);
103
108
113
118
123
127 static OdDbEvalVariantPtr init(const OdString& str);
128
136//OdDbEvalVariant& operator=(const ACHAR* szVal);
142
146 void clear();
147
151 void copyFrom(const OdRxObject* pOther);//eWrongObjectType
152
156 bool operator < ( const OdDbEvalVariant& val ) const;
157
161 bool operator > ( const OdDbEvalVariant& val ) const;
162
166 bool operator <= ( const OdDbEvalVariant& val ) const;
167
171 bool operator >= ( const OdDbEvalVariant& val ) const;
172
176 bool operator == ( const OdDbEvalVariant& val ) const;
177
181 bool operator != ( const OdDbEvalVariant& val ) const;
182
192
198 void dwgOutFields(OdDbDwgFiler* pFiler) const;
199
209
215 void dxfOutFields(OdDbDxfFiler* pFiler) const;
216
221
225 OdResult setValue(int /*AcDb::DxfCode*/ groupcode, const double value);
226
230 OdResult setValue(int /*AcDb::DxfCode*/ groupcode, const short value);
231
235 OdResult setValue(int /*AcDb::DxfCode*/ groupcode, const int value);
236
240 OdResult setValue(int /*AcDb::DxfCode*/ groupcode, const OdString& value);
241
245 OdResult setValue(int /*AcDb::DxfCode*/ groupcode, const OdDbObjectId value);
246
250 OdResult setValue(int /*AcDb::DxfCode*/ groupcode, const OdGePoint3d& value);
251
255 OdResult setValue(int /*AcDb::DxfCode*/ groupcode, const OdGePoint2d& value);
256
260 OdResult getValue(double& value) const;
261
265 OdResult getValue(short& value) const;
266
271
276
281
286
291
292 //FELIX_CHANGE_BEGIN
293 OdResult fxGetValue(double& value) const;
294 //FELIX_CHANGE_END
298 int getAsInt() const;
299
303 double getAsDouble() const;
304
305protected:
308
309};
310
311#include "TD_PackPop.h"
312
313#endif
OdSmartPtr< OdDbEvalVariant > OdDbEvalVariantPtr
DwgDataType
@ kDwgInt16
@ kDwgInt8
@ kDwgSoftOwnershipId
@ kDwgNull
@ kDwgReal
@ kDwgHardPointerId
@ kDwg2Real
@ kDwgHardOwnershipId
@ kDwgHandle
@ kDwgText
@ kDwgNotRecognized
@ kDwgInt32
@ kDwg3Real
@ kDwgInt64
@ kDwgSoftPointerId
@ kDwgBChunk
#define TOOLKIT_EXPORT
Definition DbExport.h:40
OdResult
Definition OdResult.h:29
bool operator>=(const OdString &s1, const OdString &s2)
Definition OdString.h:1384
bool operator<=(const OdString &s1, const OdString &s2)
Definition OdString.h:1362
bool operator<(const OdString &s1, const OdString &s2)
Definition OdString.h:1317
bool operator>(const OdString &s1, const OdString &s2)
Definition OdString.h:1340
static OdDbEvalVariantPtr init(short iVal)
OdResult dxfInFields(OdDbDxfFiler *pFiler)
static OdDbEvalVariantPtr init(double dVal)
static OdDbEvalVariantPtr init(int lVal)
ODRX_DECLARE_MEMBERS(OdDbEvalVariant)
void copyFrom(const OdRxObject *pOther)
DwgDataType getType() const
static OdDbEvalVariantPtr init(const OdDbEvalVariant *pOther)
OdDbEvalVariant & operator=(const OdDbEvalVariant &other)
OdDbEvalVariant & operator=(const OdResBuf &rb)
OdDbEvalVariant & operator=(const OdString &str)
OdResult dwgInFields(OdDbDwgFiler *pFiler)
static OdDbEvalVariantPtr init(const OdGePoint3d &pt)
static OdDbEvalVariantPtr init(const OdDbEvalVariant &other)
OdResult fxGetValue(double &value) const
DwgDataType m_type
OdDbEvalVariant & operator=(int lVal)
OdResult getValue(int &value) const
OdResult setValue(int groupcode, const double value)
OdResult getValue(OdDbObjectId &value, OdDbDatabase *pDb=NULL) const
double getAsDouble() const
static OdDbEvalVariantPtr init(const OdResBuf &rb)
OdDbEvalVariant & operator=(double dVal)
static OdDbEvalVariantPtr init(const OdString &str)
OdDbEvalVariant & operator=(const OdDbObjectId &id)
OdResult setValue(int groupcode, const OdDbObjectId value)
OdDbEvalVariant & operator=(const OdGePoint3d &pt)
OdResult setValue(int groupcode, const int value)
void dwgOutFields(OdDbDwgFiler *pFiler) const
OdResult setValue(int groupcode, const OdGePoint3d &value)
OdResult getValue(OdGePoint2d &value) const
OdDbEvalVariant & operator=(short iVal)
OdDbEvalVariant & operator=(const OdGePoint2d &pt)
OdResult setValue(int groupcode, const OdGePoint2d &value)
OdResult getValue(short &value) const
OdResult setValue(int groupcode, const OdString &value)
OdResult getValue(double &value) const
static OdDbEvalVariantPtr init(const OdGePoint2d &pt)
int getAsInt() const
void dxfOutFields(OdDbDxfFiler *pFiler) const
OdResult getValue(OdString &value) const
OdResult getValue(OdGePoint3d &value) const
OdResult setValue(int groupcode, const short value)
static OdDbEvalVariantPtr init(const OdDbObjectId &id)
bool operator==(const OdResBuf &Rb) const
bool operator!=(const OdResBuf &Rb) const
Definition ResBuf.h:1783
GLsizei const GLfloat * value
Definition gles2_ext.h:302