Esempio n. 1
0
 //=====================================================================
 /// <summary>
 /// Writes a property description.
 /// </summary>
 public void WriteProperty(StreamWriter w, PropertyDef p)
 {
     this.WriteThingWithDescription(
         w, p.Name, null, null, p.Description,
         p.Overridden, p.Source,
         null, null, p.IsIfcOnly);
 }
Esempio n. 2
0
        //=====================================================================
        /// <summary>
        /// Processes a line which appears to define a property.
        /// identifier "=" value
        /// </summary>
        /// <param name="name">the name of the property</param>
        private void ProcessProperty(String name, bool ifcOnly)
        {
            PropertyDef p;

            if (CurrClassOrObj == null)
                return;
            p = new PropertyDef(name, LastComment, this.CurrClassOrObj,
                                Path.GetFileName(CurrentFileName), LineNumber);
            p.IsIfcOnly = ifcOnly;
            CurrClassOrObj.Properties.Add(p);
            LastComment = "";
        }