//======================================================================= /// <summary> /// Copy constructor /// </summary> /// <param name="bluePrintValue"></param> //======================================================================= public TCompProperty(TCompProperty bluePrintValue) { bRead = bluePrintValue.bRead; bWrite = bluePrintValue.bWrite; bInit = bluePrintValue.bInit; InitValue = new TInitValue(bluePrintValue.InitValue); sDescr = bluePrintValue.sDescr; sFullDescr = bluePrintValue.sFullDescr; //what about sub field descrs?? }
//========================================================================= /// <summary> /// Initialise the internal list of properties from the /// component description. /// </summary> /// <param name="sDescription">Component description</param> //========================================================================= private void InitList(string sDescription) { string sProperty; Clear(); TComponentDescrParser DescParser = new TComponentDescrParser(sDescription); sProperty = DescParser.firstProperty(); while (sProperty.Length != 0) { TCompProperty newProperty = new TCompProperty(sProperty); if (newProperty.bInit) { addValue(newProperty.InitValue); //add the member property of the newProperty } sProperty = DescParser.nextProperty(); } }