void InitProperty(NFIDENTID self, string strClassName) { NFILogicClass xLogicClass = NFCLogicClassManager.Instance.GetElement(strClassName); NFIDataList xDataList = xLogicClass.GetPropertyManager().GetPropertyList(); for (int i = 0; i < xDataList.Count(); ++i) { string strPropertyName = xDataList.StringVal(i); NFIProperty xProperty = xLogicClass.GetPropertyManager().GetProperty(strPropertyName); NFIObject xObject = GetObject(self); NFIPropertyManager xPropertyManager = xObject.GetPropertyManager(); xPropertyManager.AddProperty(strPropertyName, xProperty.GetValue()); } }
public override bool Shut() { mRecordManager = null; mPropertyManager = null; mHeartManager = null; return true; }
public override bool Init() { mRecordManager = new NFCRecordManager(mSelf); mPropertyManager = new NFCPropertyManager(mSelf); mHeartManager = new NFCHeartBeatManager(mSelf); mEventManager = new NFCEventManager(mSelf); return true; }
public NFCLogicClass() { mxPropertyManager = new NFCPropertyManager(new NFIDENTID()); mxRecordManager = new NFCRecordManager(new NFIDENTID()); }
public override bool Shut() { NFIDataList xRecordList = mRecordManager.GetRecordList(); if (null != xRecordList) { for(int i = 0; i < xRecordList.Count(); ++i) { string strRecordName = xRecordList.StringVal(i); NFIRecord xRecord = mRecordManager.GetRecord(strRecordName); if (null != xRecord) { xRecord.Clear(); } } } mRecordManager = null; mPropertyManager = null; mHeartManager = null; mEventManager = null; return true; }
public NFCElement() { mxPropertyManager = new NFCPropertyManager(new NFIDENTID()); }