示例#1
0
        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());
            }
        }
示例#2
0
 public override bool Shut()
 {
     mRecordManager = null;
     mPropertyManager = null;
     mHeartManager = null;
     return true;
 }
示例#3
0
        public override bool Init()
        {
            mRecordManager = new NFCRecordManager(mSelf);
            mPropertyManager = new NFCPropertyManager(mSelf);
            mHeartManager = new NFCHeartBeatManager(mSelf);
            mEventManager = new NFCEventManager(mSelf);

            return true;
        }
示例#4
0
 public NFCLogicClass()
 {
     mxPropertyManager = new NFCPropertyManager(new NFIDENTID());
     mxRecordManager = new NFCRecordManager(new NFIDENTID());
 }
示例#5
0
        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;
        }
示例#6
0
 public NFCElement()
 {
     mxPropertyManager = new NFCPropertyManager(new NFIDENTID());
 }