/// <summary> /// Constructs a tag field description from an xml stream /// </summary> /// <param name="type"></param> /// <param name="s"></param> internal protected FieldAttribute(FieldType type, IO.XmlStream s) { Type = type; //s.ReadAttribute("type", ref Type); s.ReadAttributeOpt("name", ref Name); s.ReadAttributeOpt("help", ref Help); s.ReadAttributeOpt("units", ref Units); s.ReadAttributeOpt("blockname", ref IsBlockName); s.ReadAttributeOpt("readonly", ref IsReadonly); s.ReadAttributeOpt("hidden", ref IsHidden); }
/// <summary> /// Constructs a tag field description that only specifies the type /// </summary> /// <param name="_type">Field Type of the tag field</param> protected FieldAttribute(TagInterface.FieldType _type) { Type = _type; }