CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
DbSymUtl.h File Reference
#include "TD_PackPush.h"
#include "OdString.h"
#include "DbObjectId.h"
#include "DbSymbolTable.h"
#include "DbSymbolTableRecord.h"
#include "DbTextStyleTableRecord.h"
#include "DbDictionary.h"
#include "DbDatabase.h"
#include "StdStrings.h"
#include "TD_PackPop.h"

Go to the source code of this file.

Namespaces

namespace  OdDbSymUtil
 

Macros

#define AC_STRING(name, val)   extern TOOLKIT_EXPORT_GLOBAL const OdConstString name;
 
#define DBSYMUTL_MAKE_GETSYMBOLID_FUNC(T_TABLE)
 

Functions

TOOLKIT_EXPORT OdResult OdDbSymUtil::repairPreExtendedSymbolName (OdString &newName, const OdString &oldName, const OdDbDatabase *pDb, bool allowVerticalBar=false, const OdChar symSubst=L '_', bool insertPrefix=true)
 
TOOLKIT_EXPORT OdResult OdDbSymUtil::repairSymbolName (OdString &newName, const OdString &oldName, const OdDbDatabase *pDb, bool allowVerticalBar=false, const OdChar symSubst=L '_', bool insertPrefix=true)
 
TOOLKIT_EXPORT OdResult OdDbSymUtil::validatePreExtendedSymbolName (const OdString &name, const OdDbDatabase *pDb, bool allowVerticalBar=false)
 
TOOLKIT_EXPORT OdResult OdDbSymUtil::validateSymbolName (const OdString &name, const OdDbDatabase *pDb, bool allowVerticalBar=false)
 
TOOLKIT_EXPORT bool OdDbSymUtil::getMaxSymbolNameLength (OdUInt32 &maxLength, OdUInt32 &maxSize, bool isNewName, bool compatibilityMode)
 
OdString OdDbSymUtil::getSymbolName (const OdDbObjectId &objId)
 
OdDbObjectId OdDbSymUtil::getTextStyleId (const OdString &name, const OdDbDatabase *pDb)
 
OdDbObjectId OdDbSymUtil::getPlotstyleId (const OdString &name, const OdDbDatabase *pDb)
 
OdDbObjectId OdDbSymUtil::getMLStyleId (const OdString &name, const OdDbDatabase *pDb)
 
OdDbObjectId OdDbSymUtil::getTableStyleId (const OdString &name, const OdDbDatabase *pDb)
 
OdDbObjectId OdDbSymUtil::getMLeaderStyleId (const OdString &name, const OdDbDatabase *pDb)
 
OdDbObjectId OdDbSymUtil::getVisualStyleId (const OdString &name, const OdDbDatabase *pDb)
 
const OdStringOdDbSymUtil::linetypeByLayerName ()
 
bool OdDbSymUtil::isLinetypeByLayerName (const OdString &name)
 
const OdStringOdDbSymUtil::linetypeByBlockName ()
 
bool OdDbSymUtil::isLinetypeByBlockName (const OdString &name)
 
const OdStringOdDbSymUtil::linetypeContinuousName ()
 
bool OdDbSymUtil::isLinetypeContinuousName (const OdString &name)
 
const OdStringOdDbSymUtil::layerZeroName ()
 
bool OdDbSymUtil::isLayerZeroName (const OdString &name)
 
const OdStringOdDbSymUtil::layerDefpointsName ()
 
bool OdDbSymUtil::isLayerDefpointsName (const OdString &name)
 
const OdStringOdDbSymUtil::textStyleStandardName ()
 
const OdStringOdDbSymUtil::MLineStyleStandardName ()
 
bool OdDbSymUtil::isMLineStandardName (const OdString &name)
 
const OdStringOdDbSymUtil::dimStyleStandardName (OdDb::MeasurementValue measurement)
 
const OdStringOdDbSymUtil::viewportActiveName ()
 
bool OdDbSymUtil::isViewportActiveName (const OdString &name)
 
bool OdDbSymUtil::isTextStyleStandardName (const OdString &name)
 
TOOLKIT_EXPORT const OdDbObjectIdOdDbSymUtil::textStyleStandardId (const OdDbDatabase *pDb)
 
TOOLKIT_EXPORT const OdDbObjectIdOdDbSymUtil::dimStyleStandardId (const OdDbDatabase *pDb)
 
TOOLKIT_EXPORT const OdDbObjectId OdDbSymUtil::MLineStyleStandardId (const OdDbDatabase *pDb)
 
TOOLKIT_EXPORT const OdDbObjectId OdDbSymUtil::getLayerId (OdDbDatabase *pDb, const OdString &strLayer)
 
const OdStringOdDbSymUtil::blockModelSpaceName (OdDb::DwgVersion version=OdDb::kDHL_CURRENT)
 
bool OdDbSymUtil::isBlockModelSpaceName (const OdString &pN, OdDb::DwgVersion version=OdDb::kDHL_CURRENT)
 
const OdStringOdDbSymUtil::blockPaperSpaceName (OdDb::DwgVersion version=OdDb::kDHL_CURRENT)
 
bool OdDbSymUtil::isBlockPaperSpaceName (const OdString &pN, OdDb::DwgVersion version=OdDb::kDHL_CURRENT)
 
bool OdDbSymUtil::isKindOfBlockPaperSpaceName (const OdString &pN, OdDb::DwgVersion version=OdDb::kDHL_CURRENT)
 
const OdStringOdDbSymUtil::plotStyleNormalName ()
 
const OdStringOdDbSymUtil::TableStyleStandardName ()
 
bool OdDbSymUtil::isTableStandardName (const OdString &name)
 
const OdStringOdDbSymUtil::MLeaderStyleStandardName ()
 
bool OdDbSymUtil::isMLeaderStandardName (const OdString &name)
 
const OdStringOdDbSymUtil::DetailViewStyleStandardName (OdDbDatabase *pDb)
 
bool OdDbSymUtil::isDetailViewStyleStandardName (OdDbDatabase *pDb, const OdString &name)
 
const OdStringOdDbSymUtil::SectionViewStyleStandardName (OdDbDatabase *pDb)
 
bool OdDbSymUtil::isSectionViewStyleStandardName (OdDbDatabase *pDb, const OdString &name)
 

Macro Definition Documentation

◆ AC_STRING

#define AC_STRING (   name,
  val 
)    extern TOOLKIT_EXPORT_GLOBAL const OdConstString name;

Definition at line 41 of file DbSymUtl.h.

◆ DBSYMUTL_MAKE_GETSYMBOLID_FUNC

#define DBSYMUTL_MAKE_GETSYMBOLID_FUNC (   T_TABLE)
Value:
inline OdDbObjectId \
get ## T_TABLE ## Id(const OdString& name, const OdDbDatabase *pDb) \
{ \
if (!pDb) return OdDbObjectId::kNull; \
OdDbSymbolTablePtr pTable = pDb->get ## T_TABLE ## TableId().safeOpenObject(); \
ODA_ASSERT(!pTable->isOdDbObjectIdsInFlux()); \
return pTable->getAt(name); \
}
static TOOLKIT_EXPORT_STATIC const OdDbObjectId kNull
Definition: DbObjectId.h:110
const T * get() const
Definition: SmartPtr.h:339
GLuint const GLchar * name
Definition: gles2_ext.h:265

Definition at line 114 of file DbSymUtl.h.