예제 #1
0
파일: Box.cs 프로젝트: acinep/net7mma-1
        public static T findFirst <T>(NodeBox box, T clazz, params String[] path)
        {
            //T[] result = (T[])findAll(box, clazz, path);

            //return result.Length > 0 ? result[0] : null;

            return(default(T));
        }
예제 #2
0
파일: Box.cs 프로젝트: acinep/net7mma-1
 private static void findSub(Box box, List <String> path, ICollection <Box> result)
 {
     if (path.Count() > 0)
     {
         String head = path[0];
         path.RemoveAt(0);
         if (box is NodeBox)
         {
             NodeBox nb = (NodeBox)box;
             foreach (var candidate in nb.getBoxes())
             {
                 if (head == null || head.Equals(candidate.header.getFourcc()))
                 {
                     findSub(candidate, path, result);
                 }
             }
         }
         path.Insert(0, head);
     }
     else
     {
         result.Add(box);
     }
 }
예제 #3
0
파일: Box.cs 프로젝트: acinep/net7mma-1
        public static Box findFirst(NodeBox box, params String[] path)
        {
            //return findFirst(box, Box.gclass, path);

            return(null);
        }
예제 #4
0
 public NodeBox(NodeBox other)
     : base(other)
 {
     this.boxes   = other.boxes;
     this.factory = other.factory;
 }