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

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