Example #1
0
        protected void AnalyseOneClass(string strClassDefine)
        {
            MacroProcess(ref strClassDefine);
            string strResult  = "";
            string strOneFunc = "";
            int    nBegin     = 0;
            int    nEnd       = -1;

            nBegin = strClassDefine.IndexOf("virtual", 0);

            while (nBegin != -1)
            {
                KTransferOneFunction myTransfer = new KTransferOneFunction();
                nEnd       = strClassDefine.IndexOf(';', nBegin);
                strOneFunc = strClassDefine.Substring(nBegin, nEnd - nBegin);
                myTransfer.ReInit(strOneFunc);
                string strFuncName = myTransfer.GetFuncName();
                string strOldParas = GetOldParas(strFuncName);
                myTransfer.SetOldParas(strOldParas);
                listTransferFuncs.Add(myTransfer);
                nBegin = strClassDefine.IndexOf("virtual", nEnd);
            }
        }
Example #2
0
File: Form1.cs Project: viticm/pap2
 protected void AnalyseOneClass(string strClassDefine)
 {
     MacroProcess(ref strClassDefine);
     string strResult = "";
     string strOneFunc = "";
     int nBegin = 0;
     int nEnd = -1;
     
     nBegin = strClassDefine.IndexOf("virtual", 0); 
     
     while (nBegin != -1)
     {
         KTransferOneFunction myTransfer = new KTransferOneFunction();
         nEnd = strClassDefine.IndexOf(';', nBegin);
         strOneFunc = strClassDefine.Substring(nBegin, nEnd - nBegin);
         myTransfer.ReInit(strOneFunc);
         string strFuncName = myTransfer.GetFuncName();
         string strOldParas = GetOldParas(strFuncName);
         myTransfer.SetOldParas(strOldParas);
         listTransferFuncs.Add(myTransfer);                
         nBegin = strClassDefine.IndexOf("virtual", nEnd);
     }
 }