CFx SDK Documentation
2022 SP0
|
#include <ResBuf.h>
Classes | |
union | Data |
Static Public Member Functions | |
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 OdRxClass * | desc () |
Protected Member Functions | |
OdResBuf () | |
Protected Attributes | |
int | m_nCode |
Data | m_data |
OdResBufPtr | m_pNext |
<group Other_Classes>
This class implements ResBuf object which represents the structure for storing and passing the tagged data of all basic data types between various objects using different technologies.
<link db_rb_sample_sequence.html, Example of Working with the Sequence of Tagged Data>
<link db_xdata.html, Working with Extended Data>
<link db_sysvar.html, Working with System Variables>
enum OdResBuf::ValueType |
Defines the group codes for ResBuf instances.
OdResBuf::~OdResBuf | ( | ) |
Destroys an instance of the ResBuf object.
|
protected |
|
virtual |
Copies the contents of the specified ResBuf object into this ResBuf object.
pRb | [in] Pointer to the specified source ResBuf object to be copied. |
Reimplemented from OdRxObject.
const OdBinaryData& OdResBuf::getBinaryChunk | ( | ) | const |
Returns the data content of the ResBuf object as a Binary chunk.
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::setBinaryChunk(), OdResBuf::restype(), OdDxfCode::_getType() methods
OdBinaryData, OdUInt8 classes
bool OdResBuf::getBool | ( | ) | const |
Returns the data content of the ResBuf object as a Boolean value.
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::setBool(), OdResBuf::restype(), OdDxfCode::_getType() methods
const OdCmColor& OdResBuf::getColor | ( | ) | const |
Returns the data content of the ResBuf object as a Color instance.
<link db_rb_verify.html, Determining the Data Type by Group Code>
<link cm.html, Colors and Transparencies>
OdResBuf::setColor(), OdResBuf::restype() methods
double OdResBuf::getDouble | ( | ) | const |
Returns the data content of the ResBuf object as a double-precision floating-point value.
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::setDouble(), OdResBuf::restype(), OdDxfCode::_getType() methods
const OdDbObjectId& OdResBuf::getEntName | ( | ) | const |
Returns the data content of the ResBuf object as an OdDbObjectId instance.
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::setObjectId(), OdResBuf::restype(), OdDxfCode::_getType() methods
OdDbObjectId, OdDbHandle classes
OdDbHandle OdResBuf::getHandle | ( | ) | const |
Returns the data content of the ResBuf object as an OdDbHandle instance.
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::setHandle(), OdResBuf::restype(), OdDxfCode::_getType() methods
OdDbHandle, OdUInt64 classes
OdInt16 OdResBuf::getInt16 | ( | ) | const |
Returns the data content of the ResBuf object as 16-bit Integer value.
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::setInt16(), OdResBuf::restype(), OdDxfCode::_getType() methods
OdInt32 OdResBuf::getInt32 | ( | ) | const |
Returns the data content of the ResBuf object as 32-bit Integer value.
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::setInt32(), OdResBuf::restype(), OdDxfCode::_getType() methods
OdInt64 OdResBuf::getInt64 | ( | ) | const |
Returns the data content of the ResBuf object as 64-bit Integer value.
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::setInt64(), OdResBuf::restype(), OdDxfCode::_getType() methods
OdInt8 OdResBuf::getInt8 | ( | ) | const |
Returns the data content of the ResBuf object as 8-bit Integer value.
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::setInt8(), OdResBuf::restype(), OdDxfCode::_getType() methods
OdDbObjectId OdResBuf::getObjectId | ( | const OdDbDatabase * | pDb | ) | const |
Returns the data content of the ResBuf object as an OdDbObjectId instance using the specified database instance.
pDb | [in] Pointer to the database object. |
OdResBuf::setObjectId(), OdResBuf::restype(), OdDxfCode::_getType() methods
OdDbSelectionSetPtr OdResBuf::getPickSet | ( | ) | const |
Returns the ResVal in this ResBuf object.
const OdGePoint2d& OdResBuf::getPoint2d | ( | ) | const |
Returns the data content of the ResBuf object as two-dimesional point instance.
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::setPoint2d(), OdResBuf::restype(), OdDxfCode::_getType() methods
const OdGePoint3d& OdResBuf::getPoint3d | ( | ) | const |
Returns the data content of the ResBuf object as three-dimesional point instance.
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::setPoint3d(), OdResBuf::restype(), OdDxfCode::_getType() methods
OdResBufPtr OdResBuf::getResBuf | ( | ) | const |
Returns a pointer to the ResBuf instance nested in the data content of the ResBuf object.
OdResBuf::setResBuf(), OdResBuf::restype() methods
OdString OdResBuf::getString | ( | ) | const |
Returns the data content of the ResBuf object as a String value.
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::setString(), OdResBuf::restype(), OdDxfCode::_getType() methods
const OdGeVector2d& OdResBuf::getVector2d | ( | ) | const |
Returns the data content of the ResBuf object as two-dimesional vector instance.
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::setVector2d(), OdResBuf::restype(), OdDxfCode::_getType() methods
const OdGeVector3d& OdResBuf::getVector3d | ( | ) | const |
Returns the data content of the ResBuf object as three-dimesional vector instance.
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::setVector3d(), OdResBuf::restype(), OdDxfCode::_getType() methods
OdResBufPtr OdResBuf::insert | ( | OdResBuf * | pRb | ) |
Inserts the specified ResBuf object before the next ResBuf object in the sequence of tagged data after the current ResBuf object that calls this method.
pRb | [in] Pointer to the existing ResBuf instance to be inserted. |
OdResBuf::next(), OdResBuf::last(), OdResBuf::setNext() methods
OdResBufPtr OdResBuf::last | ( | ) | const |
Returns a smart pointer to the last ResBuf object in the sequence of tagged data.
OdResBuf::next(), OdResBuf::setNext() methods
|
inlinestatic |
Create an instance of the ResBuf object of the specified data type and initialized the specified data value.
resType | [in] Group code as an Integer value. |
resVal | [in] Value of the corresponding type. |
|
inlinestatic |
Create an instance of the ResBuf object of the specified data type and initialized the specified data value.
resType | [in] Group code as an Integer value. |
resVal | [in] Value of the corresponding type. |
|
inlinestatic |
Create an instance of the ResBuf object of the specified data type and initialized the specified data value.
resType | [in] Group code as an Integer value. |
resVal | [in] Value of the corresponding type. |
|
inlinestatic |
Create an instance of the ResBuf object of the specified data type and initialized the specified data value.
resType | [in] Group code as an Integer value. |
resVal | [in] Value of the corresponding type. |
|
inlinestatic |
Create an instance of the ResBuf object of the specified data type and initialized the specified data value.
resType | [in] Group code as an Integer value. |
resVal | [in] Value of the corresponding type. |
|
inlinestatic |
Create an instance of the ResBuf object of the specified data type and initialized the specified data value.
resType | [in] Group code as an Integer value. |
resVal | [in] Value of the corresponding type. |
|
inlinestatic |
Create an instance of the ResBuf object of the specified data type and initialized the specified data value.
resType | [in] Group code as an Integer value. |
resVal | [in] Value of the corresponding type. |
|
inlinestatic |
Create an instance of the ResBuf object of the specified data type and initialized the specified data value.
resType | [in] Group code as an Integer value. |
resVal | [in] Value of the corresponding type. |
|
inlinestatic |
Create an instance of the ResBuf object of the specified data type and initialized the specified data value.
resType | [in] Group code as an Integer value. |
resVal | [in] Value of the corresponding type. |
|
inlinestatic |
Create an instance of the ResBuf object of the specified data type and initialized the specified data value.
resType | [in] Group code as an Integer value. |
resVal | [in] Value of the corresponding type. |
|
inlinestatic |
Create an instance of the ResBuf object of the specified data type and initialized the specified data value.
resType | [in] Group code as an Integer value. |
resVal | [in] Value of the corresponding type. |
|
inlinestatic |
Create an instance of the ResBuf object of the specified data type and initialized the specified data value.
resType | [in] Group code as an Integer value. |
resVal | [in] Value of the corresponding type. |
|
inlinestatic |
Create an instance of the ResBuf object of the specified data type and initialized the specified data value.
resType | [in] Group code as an Integer value. |
resVal | [in] Value of the corresponding type. |
|
inlinestatic |
Create an instance of the ResBuf object of the specified data type and initialized the specified data value.
resType | [in] Group code as an Integer value. |
resVal | [in] Value of the corresponding type. |
|
inlinestatic |
Create an instance of the ResBuf object of the specified data type and initialized the specified data value.
resType | [in] Group code as an Integer value. |
resVal | [in] Value of the corresponding type. |
|
inlinestatic |
Create an instance of the ResBuf object of the specified data type and initialized the specified data value.
resType | [in] Group code as an Integer value. |
resVal | [in] Value of the corresponding type. |
|
inlinestatic |
Create an instance of the ResBuf object of the specified data type and initialized the specified data value.
resType | [in] Group code as an Integer value. |
resVal | [in] Value of the corresponding type. |
|
inlinestatic |
Create an instance of the ResBuf object of the specified data type and initialized the specified data value.
resType | [in] Group code as an Integer value. |
resVal | [in] Value of the corresponding type. |
|
inlinestatic |
Create an instance of the ResBuf object of the specified data type and initialized the specified data value.
resType | [in] Group code as an Integer value. |
resVal | [in] Value of the corresponding type. |
|
inlinestatic |
Create an instance of the ResBuf object of the specified data type and initialized the specified data value.
resType | [in] Group code as an Integer value. |
resVal | [in] Value of the corresponding type. |
|
static |
Create an instance of the ResBuf object of the specified data type and initialized the specified data value.
resType | [in] Group code as an Integer value. |
OdResBufPtr OdResBuf::next | ( | ) | const |
Returns a smart pointer to the next ResBuf object in the sequence of tagged data.
OdResBuf::last(), OdResBuf::setNext() methods
OdResBuf::ODRX_DECLARE_MEMBERS | ( | OdResBuf | ) |
|
inline |
Compares the specified ResBuf object with this ResBuf object whether object are not equal.
Rb | [in] Reference to the specified ResBuf object to be compared. |
bool OdResBuf::operator== | ( | const OdResBuf & | Rb | ) | const |
Compares the specified ResBuf object with this ResBuf object whether object are equal.
Rb | [in] Reference to the specified ResBuf object to be compared. |
int OdResBuf::restype | ( | ) | const |
Returns the group code as an Integer value which indicates the data type stored in the ResBuf object.
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::ValueType enumerator
OdResBuf::setRestype() method
|
static |
DOM
void OdResBuf::setBinaryChunk | ( | const OdBinaryData & | bChunk | ) |
Sets the data content of the ResBuf object using the specified binary chunk instance only if the stored group code has the BinaryChunk type.
bChunk | [in] Binary chunk instance to be set. |
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::getBinaryChunk(), OdResBuf::setRestype(), OdDxfCode::_getType() methods
OdBinaryData, OdUInt8 classes
void OdResBuf::setBool | ( | bool | bValue | ) |
Sets the data content of the ResBuf object using the specified Boolean value only if the stored group code has a Boolean type.
bValue | [in] Boolean value to be set. |
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::getBool(), OdResBuf::setRestype(), OdDxfCode::_getType() methods
Sets the data content of the ResBuf object using the specified Color instance only if the group code is set to OdResBuf::kRtColor.
cmColor | [in] Color instance to be set. |
<link db_rb_verify.html, Determining the Data Type by Group Code>
<link cm.html, Colors and Transparencies>
void OdResBuf::setDouble | ( | double | realValue | ) |
Sets the data content of the ResBuf object using the specified double-precision floating-point value only if the stored group code has a Double or Angle type.
realValue | [in] Double value to be set. |
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::getDouble(), OdResBuf::setRestype(), OdDxfCode::_getType() methods
void OdResBuf::setHandle | ( | const OdDbHandle & | vHandle | ) |
Sets the data content of the ResBuf object using the specified Handle instance only if the stored group code has the Handle type.
vHandle | [in] Handle instance to be set. |
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::getHandle(), OdResBuf::setRestype(), OdDxfCode::_getType() methods
OdDbHandle, OdUInt64 classes
Sets the data content of the ResBuf object using the specified 16-bit Integer value only if the stored group code has an Integer type.
iValue | [in] 16-bit Integer value to be set. |
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::getInt16(), OdResBuf::setRestype(), OdDxfCode::_getType() methods
Sets the data content of the ResBuf object using the specified 32-bit Integer value only if the stored group code has an Integer type.
iValue | [in] 32-bit Integer value to be set. |
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::getInt32(), OdResBuf::setRestype(), OdDxfCode::_getType() methods
Sets the data content of the ResBuf object using the specified 64-bit Integer value only if the stored group code has an Integer type.
iValue | [in] 64-bit Integer value to be set. |
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::getInt64(), OdResBuf::setRestype(), OdDxfCode::_getType() methods
Sets the data content of the ResBuf object using the specified 8-bit Integer value only if the stored group code has an Integer type.
iValue | [in] 8-bit Integer value to be set. |
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::getInt8(), OdResBuf::setRestype(), OdDxfCode::_getType() methods
OdResBufPtr OdResBuf::setNext | ( | OdResBuf * | pRb | ) |
Sets the specified ResBuf object as the next ResBuf Object in the sequence of tagged data after the current ResBuf object that calls this method.
pRb | [in] Pointer to the existing ResBuf instance to be set. |
OdResBuf::next(), OdResBuf::last(), OdResBuf::insert() methods
void OdResBuf::setObjectId | ( | const OdDbObjectId & | idObject | ) |
Sets the data content of the ResBuf object using the specified object ID instance only if the stored group code has the ObjectId, SoftPointerId, HardPointerId, SoftOwnershipId, or HardOwnershipId type.
idObject | [in] Object ID instance to be set. |
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::getEntName(), OdResBuf::setRestype(), OdDxfCode::_getType() methods
OdDbObjectId, OdDbHandle classes
void OdResBuf::setPickSet | ( | const OdDbSelectionSet * | pSSet | ) |
Sets the ResVal in this ResBuf object.
pSSet | [in] selection set. |
void OdResBuf::setPoint2d | ( | const OdGePoint2d & | gePoint | ) |
Sets the data content of the ResBuf object using the specified two-dimesional point instance only if the stored group code has a Point type.
gePoint | [in] Two-dimesional point instance to be set. |
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::getPoint2d(), OdResBuf::setRestype(), OdDxfCode::_getType() methods
void OdResBuf::setPoint3d | ( | const OdGePoint3d & | gePoint | ) |
Sets the data content of the ResBuf object using the specified three-dimesional point
instance only if the stored group code has a Point type.
gePoint | [in] Three-dimesional point instance to be set. |
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::getPoint3d(), OdResBuf::setRestype(), OdDxfCode::_getType() methods
Sets the data content of the ResBuf object using the specified ResBuf instance only if the group code is set to OdResBuf::kRtResBuf.
pResBuf | [in] Pointer to the existing ResBuf instance to be set. |
void OdResBuf::setRestype | ( | int | resType | ) |
Sets the group code for the ResBuf object.
resType | [in] Group code as an Integer value. |
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::ValueType enumerator
OdResBuf::restype() method
Sets the data content of the ResBuf object using the specified String value only if the stored group code has a String type.
sValue | [in] String value to be set. |
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::getString(), OdResBuf::setRestype(), OdDxfCode::_getType() methods
void OdResBuf::setVector2d | ( | const OdGeVector2d & | geVector | ) |
Sets the data content of the ResBuf object using the specified two-dimesional vector
instance only if the stored group code has a Point type.
geVector | [in] Two-dimesional vector instance to be set. |
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::getVector2d(), OdResBuf::setRestype(), OdDxfCode::_getType() methods
void OdResBuf::setVector3d | ( | const OdGeVector3d & | val | ) |
Sets the data content of the ResBuf object using the specified three-dimesional vector
instance only if the stored group code has a Point type.
geVector | [in] Three-dimesional vector instance to be set. |
<link db_rb_verify.html, Determining the Data Type by Group Code>
OdResBuf::getVector3d(), OdResBuf::setRestype(), OdDxfCode::_getType() methods
|
protected |