www.mxdraw.com
|
符号表智能指针
template <class T_OBJECT> class McDbSymbolTablePointer : public McDbObjectPointerBase<T_OBJECT>;
McDbObjectPointer.h
自动打开数据库的符号表对象,在析构时关闭对象 例如:下面是打开当前数据库的块表代码:
McDbSymbolTablePointer<McDbBlockTable> spBlkTable(acdbCurDwg(),McDb::kForRead); if(spBlkTable.openStatus() == Mcad::eOk) { // 打开成功,做后面的操作... }