コード例 #1
0
 public BuildBinary Filter(List<string> ModuleNames)
 {
     BuildBinary NewBinary = new BuildBinary(Name, Type);
     foreach (BuildModule Module in Modules)
     {
         if (ModuleNames.Contains(Module.Name))
         {
             NewBinary.Modules.Add(Module);
         }
     }
     return NewBinary;
 }
コード例 #2
0
 public static BuildBinary FromXml(XmlNode Node)
 {
     BuildBinary NewBinary = new BuildBinary(Node.Attributes["name"].Value, Node.Attributes["type"].Value);
     if (NewBinary.Type == "cpp")
     {
         using (XmlNodeList ModuleNodeList = Node.SelectNodes("module"))
         {
             foreach (XmlNode ModuleNode in ModuleNodeList)
             {
                 BuildModule NewModule = BuildModule.FromXml(ModuleNode);
                 NewBinary.Modules.Add(NewModule);
             }
         }
     }
     return NewBinary;
 }