Example #1
0
        // Don't use this unless you know exactly what you are doing
        internal void SetParent(ExifContent adoptor)
        {
            // NOTE this api is ugly but the check prevent the parent state
            // from getting confused.  See ExifContent Add and Remove for the
            // other half.
            if (parent != null && parent.Contains(this))
            {
                parent.Remove(this);
            }

            if (adoptor != null && !adoptor.Contains(this))
            {
                adoptor.Add(this);
            }

            parent = adoptor;
        }
Example #2
0
		public ExifEntry (ExifContent parent, Tag tag)
		{
			handle = new HandleRef (this, exif_entry_new ());
			parent.Add (this);
			this.Reset (tag);
		}
Example #3
0
		// Don't use this unless you know exactly what you are doing
		internal void SetParent (ExifContent adoptor) {
			// NOTE this api is ugly but the check prevent the parent state 
			// from getting confused.  See ExifContent Add and Remove for the 
			// other half.
			if (parent != null && parent.Contains (this))
				parent.Remove (this);

			if (adoptor != null && !adoptor.Contains (this))
				adoptor.Add (this);
			
			parent = adoptor;
		}
Example #4
0
 public ExifEntry(ExifContent parent, Tag tag)
 {
     handle = new HandleRef(this, exif_entry_new());
     parent.Add(this);
     this.Reset(tag);
 }