31#include "ExtDbUtils.h"
44#define TXAPP_FULLNAME "Host Application"
45#define TXHOST_CURR_CMDCTX "TXHOST_CURR_CMDCTX"
46#define TXHOST_SETTINGS_NAME "TxHostStorage"
141 throw OdError(
"unknown function " + group +
"." +
func);
181 assign(dictionary);
return *
this;
185 return (
RXDIC*)RXDIC::createObject().
get();
191 dic = RXDIC::createObject();
199 if(nextdic.
isNull() && bCreateIfNotFound) {
200 nextdic = RXDIC::createObject();
209 nextdic = nextdic.
step(
WSTR(path[i]), bCreateIfNotFound);
236 OdExtDbUtils::DbType dbType = OdExtDbUtils::getProduct(db);
239 case OdExtDbUtils::kDbDwg:
return "DwgCtx";
240 case OdExtDbUtils::kDbDgn:
return "DgnCtx";
262 throw OdError(eUnknownFileType);
266 return sFmtBrdgAppName;
271 OdAnsiString asCmd(pAnsi);
282 dstBuf.
reserve(lenStr * 4 + 1);
284 OdAnsiString asRes = (
const char*) dstBuf.
asArrayPtr();
FIRSTDLL_EXPORT OdRxDynamicLinker * odrxDynamicLinker()
FIRSTDLL_EXPORT OdEdCommandStackPtr odedRegCmds()
#define GETBIT(flags, bit)
FIRSTDLL_EXPORT OdRxDictionary * odrxSysRegistry()
const T * asArrayPtr() const
void reserve(size_type reserveLength)
static void unicodeToUtf8(const OdChar *srcBuf, int srcSize, OdAnsiCharArray &dstBuf)
static bool utf8ToUnicode(const char *srcBuf, int srcSize, OdCharArray &dstBuf)
virtual OdRxObjectPtr arbitraryData(const OdString &szPathName) const =0
virtual OdRxObject * baseDatabase()=0
virtual OdEdFunctionIO * funcIO()=0
virtual void setArbitraryData(const OdString &szPathName, OdRxObject *pDataObj)=0
virtual void execute(OdEdCommandContext *pCommandContext)=0
virtual OdRxObjectPtr result()=0
virtual void setParam(OdRxObject *pParamObj)=0
virtual void setResult(OdRxObject *pResultObj)=0
virtual OdUInt32 idAt(const OdString &key) const =0
virtual OdRxObjectPtr getAt(const OdString &key) const =0
virtual OdRxObjectPtr remove(const OdString &key)=0
virtual OdRxObjectPtr putAt(const OdString &key, OdRxObject *pObject, OdUInt32 *pRetId=0)=0
virtual OdRxModulePtr loadApp(const OdString &applicationName, bool silent=true)=0
void assign(const OdRxDictionary *pObject)
int iCompare(const OdChar *otherString) const
const OdChar * c_str() const
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
RXPTR callFn(CMDCTX *ctx)
HRXCMD(WSTRREF func, int lookup=kCmdGlobal|kCmdLocal|kCmdThrowUnknown, WSTRREF group=WSTR::kEmpty)
void execute(CMDCTX *ctx)
RXPTR getAt(WSTRREF name)
HRXDIC stepCr(WSTRREF name)
HRXDIC walk(const PATH &path, bool bCreateIfNotFound=false)
RXPTR putAt(WSTRREF name, RXOBJ *obj)
HRXDIC step(WSTRREF name, bool bCreateIfNotFound=false)
HRXDIC & operator=(const RXOBJ *dictionary)
RXPTR remove(WSTRREF alias)
HRXDIC walkCr(const PATH &path)
static HRXDIC arbDataOpen(CMDCTX *cmdctx, WSTRREF name, bool bCreateIfNotFound=false)
GLuint const GLchar * name
GLint GLint GLint GLsizei GLsizei GLenum format
OdString ctxByFileExtension(const OdString &sExt)
OdRxDictionaryIteratorPtr RXDICITERPTR
RXPTR arbVarSafe(OdEdCommandContext *ctx, const WSTR &varName)
OdString getDbCtxName(OdEdCommandContext *ctx)
OdRxDictionaryPtr RXDICPTR
OdRxDictionaryIterator RXDICITER
OdAnsiString toUtf8(const OdString &sUnicode)
OdEdCommandContext CMDCTX
OdEdCommandContextPtr CMDCTXPTR
OdRxObjectPtrArray RXPTRARR
OdString toUtf16(const char *pAnsi)