public APIEnum(APIPage InParent, XmlNode InNode, string InName) : base(InParent, InName) { // Set the defaults Node = InNode; Protection = ParseProtection(Node); // Read the values using(XmlNodeList ValueNodeList = Node.SelectNodes("enumvalue")) { foreach(XmlNode ValueNode in ValueNodeList) { APIEnumValue Value = new APIEnumValue(ValueNode); AddRefLink(Value.Id, this); Values.Add(Value); } } // Add it as a link target AddRefLink(Node.Attributes["id"].InnerText, this); }
public APIEnum(APIPage InParent, DoxygenEntity InEntity, string InName) : base(InParent, GetCleanName(InName)) { // Set the defaults Entity = InEntity; Node = InEntity.Node; Protection = ParseProtection(Node); // Read the values using (XmlNodeList ValueNodeList = Node.SelectNodes("enumvalue")) { foreach (XmlNode ValueNode in ValueNodeList) { APIEnumValue Value = new APIEnumValue(ValueNode); AddRefLink(Value.Id, this); Values.Add(Value); } } // Add it as a link target AddRefLink(Node.Attributes["id"].InnerText, this); }