Beispiel #1
0
        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));
        }
Beispiel #2
0
 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);
     }
 }
Beispiel #3
0
        public static Box findFirst(NodeBox box, params String[] path)
        {
            //return findFirst(box, Box.gclass, path);

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