XExternalRef
Inherited from XItem,
Inherited by NULL
Friend class NULL
Description
定义了被本地的某个数据对象所参考的外部引用,它可以是一个本地文件,也可以是一个远程链接,可以被m_strif所标定的接口访问,外部引用对象也包含了获取数据对象哪些数据的信息。
Members
-
-
-
-
-
const XItem * m_pTarget =
0
Public interface
-
void
setPath(const char * dir,const char * ifType)
void
setLocation(int loc0, int loc1 = -1, int loc2 = -1)
-
-
-
-
-
-
-
-
int m_iStatus = 0
int m_iRefLoc[3]
int64 m_TimeStamp = 0
XType m_strIF
XPath m_strPath
const XItem * m_pTarget = 0
XExternalRef(ulong id)
function: 构造函数
parameters:
[i]ulong id: 整数ID
return value: 无
void setPath(const char * dir,const char * ifType)
function: 设置访问路径和接口类型
parameters:
[i]const char * dir: 路径名
[i]const char * ifType: 接口类型
return value: 无
void setLocation(int loc0, int loc1 = -1, int loc2 = -1)
function: 设置被访问数据的位置
parameters:
[i]int loc0: 第一层位置
[i] int loc1 = -1: 第二层位置
[i] int loc2 = -1: 第三层位置
return value:
const char * getPath() const
function: 获取引用路径
parameters: NULL
return value: 路径字符串
const char * getIFType() const
function: 获取接口类型
parameters: NULL
return value: 接口类型字符串
int getLocation(int idx = 0) const
function: 获取访问位置
parameters:
[i]int idx = 0:
return value:
const int * getLocations() const
function:
parameters: NULL
return value:
void setStatus(TypeID st)
function:
parameters:
[i]TypeID st:
return value:
const XItem * getTarget() const
function: 获取参考该引用的对象指针
parameters: NULL
return value: 对象指针
void setTarget(const XItem * tar)
function: 设置参考该引用的对象指针
parameters:
[i]const XItem * tar: 对象指针
return value: 无
bool isChanged() const