コード例 #1
0
        public StructureWeldJoint(XmlNode node)
            : this()
        {
            foreach (XmlAttribute attribute in node.Attributes)
            {
                switch (attribute.Name)
                {
                    default:
                        throw new NotImplementedException("Unknown WeldJoint attribute: " + attribute.Name);
                }
            }

            foreach (XmlNode data in node.ChildNodes)
            {
                switch (data.NodeType)
                {
                    case XmlNodeType.CDATA:
                        this.jointSettings = StructureJointCode.Parse(data.InnerText);
                        break;

                    case XmlNodeType.Element:
                        switch (data.Name)
                        {
                            default:
                                throw new NotImplementedException("Unknown Element of JOINT: " + data.Name);
                        }
                }
            }
        }
コード例 #2
0
 public StructureWeldJoint()
 {
     jointSettings = new StructureJointCode();
 }