зеркало из https://github.com/mono/exiv2-sharp.git
* Xmpdata.custom, XmpDatum.custom: index setter for bool and string
svn path=/trunk/exiv2-sharp/; revision=129570
This commit is contained in:
Родитель
20cbd2c87a
Коммит
481fa22153
|
@ -1,10 +1,16 @@
|
|||
2009-03-17 Stephane Delcroix <sdelcroix@novell.com>
|
||||
|
||||
* IptdData.custom, IptcDatum.custom: Enumerator
|
||||
* Xmpdata.custom, XmpDatum.custom: index setter for bool and string
|
||||
|
||||
2009-03-17 Stephane Delcroix <sdelcroix@novell.com>
|
||||
|
||||
* Exiv2.metadata: api massaging for iptc support
|
||||
* IptdData.custom, IptcDatum.custom: Enumerator (patch from
|
||||
Mike Gemuende)
|
||||
|
||||
2009-03-17 Stephane Delcroix <sdelcroix@novell.com>
|
||||
|
||||
* Exiv2.metadata: api massaging for iptc support (patch from Mike
|
||||
Gemuende)
|
||||
|
||||
2009-01-07 Stephane Delcroix <sdelcroix@novell.com>
|
||||
|
||||
|
|
|
@ -25,7 +25,8 @@ CUSTOMS = \
|
|||
$(srcdir)/Nikon2MakerNote.custom \
|
||||
$(srcdir)/Nikon3MakerNote.custom \
|
||||
$(srcdir)/PreviewImage.custom \
|
||||
$(srcdir)/XmpData.custom
|
||||
$(srcdir)/XmpData.custom \
|
||||
$(srcdir)/XmpDatum.custom
|
||||
|
||||
SOURCES = \
|
||||
$(srcdir)/IfdId.cs \
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* Author(s):
|
||||
* Stephane Delcroix (stephane@delcroix.org)
|
||||
*
|
||||
* Copyright (c) 2008 Novell
|
||||
* Copyright (c) 2008-2009 Novell
|
||||
*
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
|
@ -73,9 +73,9 @@ class Enumerator : IEnumerator
|
|||
public object this [string key]
|
||||
{
|
||||
get { return GetThis (key); }
|
||||
// set {
|
||||
// (GetThis (key) as XmpDatum).Value = value;
|
||||
// }
|
||||
set {
|
||||
(GetThis (key) as XmpDatum).Value = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* IptcDatum.custom
|
||||
*
|
||||
* Author(s):
|
||||
* Stephane Delcroix (stephane@delcroix.org)
|
||||
* Mike Gemuende (mike@gemuende.de)
|
||||
*
|
||||
* Copyright (c) 2008-2009 Novell
|
||||
*
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be
|
||||
* included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
*/
|
||||
|
||||
public object Value {
|
||||
set {
|
||||
if (value is bool)
|
||||
ValueBool = (bool)value;
|
||||
else if (value is string)
|
||||
ValueString = value as string;
|
||||
else
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
Загрузка…
Ссылка в новой задаче