CFx SDK Documentation 2024 SP0
|
#include <OdValue.h>
Public Types | |
enum | DataType { kUnknown = 0x00 , kLong = 0x01 , kDouble = 0x02 , kString = 0x04 , kDate = 0x08 , kPoint = 0x10 , k3dPoint = 0x20 , kObjectId = 0x40 , kBuffer = 0x80 , kResbuf = 0x100 , kGeneral = 0x200 , kColor = 0x400 } |
enum | UnitType { kUnitless = 0x00 , kDistance = 0x01 , kAngle = 0x02 , kArea = 0x04 , kVolume = 0x08 , kCurrency = 0x10 , kPercentage = 0x20 } |
enum | ParseOption { kParseOptionNone = 0x00 , kSetDefaultFormat = 0x01 , kPreserveMtextFormat = 0x02 , kConvertTextToValue = 0x04 , kChangeDataType = 0x08 , kParseTextForFieldCode = 0x10 } |
enum | FormatOption { kFormatOptionNone = 0x00 , kForEditing = 0x01 , kForExpression = 0x02 , kUseMaximumPrecision = 0x04 , kIgnoreMtextFormat = 0x08 } |
Public Member Functions | |
ODRX_HEAP_OPERATORS () | |
ODRX_DECLARE_MEMBERS (OdValue) | |
OdValue (void) | |
~OdValue (void) | |
OdValue (const OdValue &value) | |
OdValue (const OdString &value) | |
OdValue (OdInt32 value) | |
OdValue (double value) | |
OdValue (const OdInt64 &date) | |
OdValue (double x, double y) | |
OdValue (double x, double y, double z) | |
OdValue (const OdDbObjectId &objectId) | |
OdValue (const OdResBufPtr &resBuf) | |
OdValue (const OdTimeStamp &time) | |
OdValue (const void *buffer, OdInt32 bufferSize) | |
bool | reset () |
OdValue::DataType | dataType () const |
bool | isValid () const |
operator OdString () const | |
operator OdInt32 () const | |
operator double () const | |
operator OdInt64 () const | |
operator OdDbObjectId () const | |
OdValue & | operator= (const OdValue &value) |
OdValue & | operator= (const OdString &value) |
OdValue & | operator= (OdInt32 value) |
OdValue & | operator= (double value) |
OdValue & | operator= (OdInt64 date) |
OdValue & | operator= (const OdDbObjectId &objectId) |
OdValue & | operator= (const OdResBufPtr &resBuf) |
bool | get (OdString &value) const |
bool | get (OdInt32 &value) const |
bool | get (double &value) const |
bool | get (OdInt64 &date) const |
bool | get (double &x, double &y) const |
bool | get (double &x, double &y, double &z) const |
bool | get (OdDbObjectId &objectId) const |
bool | get (OdResBufPtr &resBuf) const |
bool | get (void *&pBuf, OdInt32 &bufferSize) const |
bool | get (OdTimeStamp &time) const |
bool | set (const OdValue &value) |
bool | set (const OdString &value) |
bool | set (OdInt32 value) |
bool | set (double value) |
bool | set (const OdInt64 &date) |
bool | set (double x, double y) |
bool | set (double x, double y, double z) |
bool | set (const OdDbObjectId &objectId) |
bool | set (const OdResBufPtr &resBuf) |
bool | set (const void *buffer, OdInt32 bufferSize) |
bool | set (const OdTimeStamp &time) |
bool | reset (OdValue::DataType nDataType) |
OdValue::UnitType | unitType (void) const |
void | setUnitType (OdValue::UnitType nUnitType) |
OdString | getFormat (void) const |
void | setFormat (const OdString &pszFormat) |
OdString | format (OdDbDatabase *pDb=0) const |
OdString | format (OdValue::FormatOption nOption, OdDbDatabase *pDb=0) |
OdString | format (const OdString &pszFormat, OdValue::FormatOption nOption, OdDbDatabase *pDb=0) |
bool | format (const OdString &pszFormat, OdString &pszValue, OdDbDatabase *pDb=0) const |
bool | convertTo (OdValue::DataType nDataType, OdValue::UnitType nUnitType) |
bool | convertTo (OdValue::DataType nDataType, OdValue::UnitType nUnitType, bool bResetIfIncompatible) |
virtual OdResult | dwgInFields (OdDbDwgFiler *pFiler) |
virtual void | dwgOutFields (OdDbDwgFiler *pFiler) const |
virtual OdResult | dxfInFields (OdDbDxfFiler *pFiler) |
virtual void | dxfOutFields (OdDbDxfFiler *pFiler) const |
Public Member Functions inherited from OdStaticRxObject< OdRxObject > | |
void | addRef () |
void | release () |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Protected Member Functions | |
OdValue (OdValueImpl *pValImpl) | |
Protected Attributes | |
OdValueImpl * | m_pImpl |
Friends | |
class | OdDbSystemInternals |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
enum OdValue::DataType |
enum OdValue::ParseOption |
enum OdValue::UnitType |
OdValue::OdValue | ( | void | ) |
OdValue::~OdValue | ( | void | ) |
OdValue::OdValue | ( | const OdValue & | value | ) |
OdValue::OdValue | ( | const OdString & | value | ) |
OdValue::OdValue | ( | OdInt32 | value | ) |
OdValue::OdValue | ( | double | value | ) |
OdValue::OdValue | ( | const OdInt64 & | date | ) |
OdValue::OdValue | ( | double | x, |
double | y | ||
) |
OdValue::OdValue | ( | double | x, |
double | y, | ||
double | z | ||
) |
OdValue::OdValue | ( | const OdDbObjectId & | objectId | ) |
OdValue::OdValue | ( | const OdResBufPtr & | resBuf | ) |
OdValue::OdValue | ( | const OdTimeStamp & | time | ) |
|
protected |
bool OdValue::convertTo | ( | OdValue::DataType | nDataType, |
OdValue::UnitType | nUnitType | ||
) |
bool OdValue::convertTo | ( | OdValue::DataType | nDataType, |
OdValue::UnitType | nUnitType, | ||
bool | bResetIfIncompatible | ||
) |
OdValue::DataType OdValue::dataType | ( | ) | const |
Returns the datatype of this FieldValue object.
Value kUnknown 0x00 kLong 0x01 kDouble 0x02 kString 0x04 kDate 0x08 kPoint 0x10 k3dPoint 0x20 kObjectId 0x40 kBuffer 0x80 kResbuf 0x100
|
virtual |
|
virtual |
|
virtual |
|
virtual |
bool OdValue::format | ( | const OdString & | pszFormat, |
OdString & | pszValue, | ||
OdDbDatabase * | pDb = 0 |
||
) | const |
OdString OdValue::format | ( | const OdString & | pszFormat, |
OdValue::FormatOption | nOption, | ||
OdDbDatabase * | pDb = 0 |
||
) |
OdString OdValue::format | ( | OdDbDatabase * | pDb = 0 | ) | const |
OdString OdValue::format | ( | OdValue::FormatOption | nOption, |
OdDbDatabase * | pDb = 0 |
||
) |
bool OdValue::get | ( | double & | value | ) | const |
Returns the value of this FieldValue object.
value | [out] Receives the value. |
bool OdValue::get | ( | double & | x, |
double & | y | ||
) | const |
Returns the value of this FieldValue object.
x | [out] Receives the X-coordinate of the point. |
y | [out] Receives the Y-coordinate of the point. |
bool OdValue::get | ( | double & | x, |
double & | y, | ||
double & | z | ||
) | const |
Returns the value of this FieldValue object.
x | [out] Receives the X-coordinate of the point. |
y | [out] Receives the Y-coordinate of the point. |
z | [out] Receives the Z-coordinate of the point. |
bool OdValue::get | ( | OdDbObjectId & | objectId | ) | const |
Returns the value of this FieldValue object.
objectId | [in] Object ID. \returnsReturns true if and only if successful. |
bool OdValue::get | ( | OdInt32 & | value | ) | const |
Returns the value of this FieldValue object.
value | [out] Receives the value. |
bool OdValue::get | ( | OdInt64 & | date | ) | const |
Returns the value of this FieldValue object.
date | [out] Receives the date value |
bool OdValue::get | ( | OdResBufPtr & | resBuf | ) | const |
Returns the value of this FieldValue object.
resBuf | [out] Receives the ResBuf list. |
bool OdValue::get | ( | OdString & | value | ) | const |
Returns the value of this FieldValue object.
value | [out] Receives the value. |
bool OdValue::get | ( | OdTimeStamp & | time | ) | const |
Returns the value of this FieldValue object.
time | [out] Receives the time value. |
Returns the value of this FieldValue object.
\param pBuf [out] Receives a pointer to the buffer.
bufferSize | [out] Receives the buffer size. \returnsReturns true if and only if successful. |
bool OdValue::isValid | ( | ) | const |
Returns true if and only if the datatype of this FieldValue is not kUnknown.
OdValue::ODRX_DECLARE_MEMBERS | ( | OdValue | ) |
OdValue::ODRX_HEAP_OPERATORS | ( | ) |
OdValue::operator double | ( | ) | const |
OdValue::operator OdDbObjectId | ( | ) | const |
OdValue::operator OdInt32 | ( | ) | const |
OdValue::operator OdInt64 | ( | ) | const |
OdValue::operator OdString | ( | ) | const |
Returns this object as the specified type.
OdValue & OdValue::operator= | ( | const OdDbObjectId & | objectId | ) |
OdValue & OdValue::operator= | ( | const OdResBufPtr & | resBuf | ) |
OdValue & OdValue::operator= | ( | double | value | ) |
bool OdValue::reset | ( | ) |
Sets the datatype of this FieldValue object to kUnknown.
bool OdValue::reset | ( | OdValue::DataType | nDataType | ) |
Sets the datatype of this FieldValue object to kUnknown.
\remarks
This function always returns true.
bool OdValue::set | ( | const OdDbObjectId & | objectId | ) |
Sets the value for this FieldValue object.
objectId | [in] Object ID. |
bool OdValue::set | ( | const OdInt64 & | date | ) |
Sets the value for this FieldValue object.
date | [in] Date value |
bool OdValue::set | ( | const OdResBufPtr & | resBuf | ) |
Sets the value for this FieldValue object.
resBuf | [in] ResBuf list. |
bool OdValue::set | ( | const OdString & | value | ) |
Sets the value for this FieldValue object.
\param value [in] Value.
bool OdValue::set | ( | const OdTimeStamp & | time | ) |
Returns the value of this FieldValue object.
time | [in] The time value. |
bool OdValue::set | ( | const OdValue & | value | ) |
Sets the value for this FieldValue object.
value | [in] Value. \returnsReturns true if and only if successful. |
Sets the value for this FieldValue object.
buffer | [in] Buffer. |
bufferSize | [in] Buffer size. |
bool OdValue::set | ( | double | value | ) |
Sets the value for this FieldValue object.
\param value [in] Value. \returns
Returns true if and only if successful.
bool OdValue::set | ( | double | x, |
double | y | ||
) |
Sets the value for this FieldValue object.
x | [in] X-coordinate of the point. |
y | [in] Y-coordinate of the point. |
bool OdValue::set | ( | double | x, |
double | y, | ||
double | z | ||
) |
Sets the value for this FieldValue object.
x | [in] X-coordinate of the point. |
y | [in] Y-coordinate of the point. |
z | [in] Z-coordinate of the point. |
bool OdValue::set | ( | OdInt32 | value | ) |
Sets the value for this FieldValue object.
\param value [in] Value. \returns
Returns true if and only if successful.
void OdValue::setUnitType | ( | OdValue::UnitType | nUnitType | ) |
OdValue::UnitType OdValue::unitType | ( | void | ) | const |