Gegl.MetadataStore – gegl-0.4 Reference Manual
Packages
gegl-0.4
Gegl
MetadataStore
artist
comment
copyright
description
disclaimer
file_module_name
resolution_unit
resolution_x
resolution_y
software
source
timestamp
title
warning
MetadataStore
_declare
_get_value
declare
get_artist
get_comment
get_copyright
get_description
get_disclaimer
get_file_module_name
get_resolution_unit
get_resolution_x
get_resolution_y
get_software
get_source
get_string
get_timestamp
get_title
get_value
get_warning
has_value
notify
register
register_hook
set_artist
set_comment
set_copyright
set_description
set_disclaimer
set_resolution_unit
set_resolution_x
set_resolution_y
set_software
set_source
set_string
set_timestamp
set_title
set_value
set_warning
typeof_value
changed
generate_value
mapped
parse_value
unmapped
MetadataStore
Object Hierarchy:
Description:
[
CCode
( type_id =
"gegl_metadata_store_get_type ()"
) ]
public
abstract
class
MetadataStore
:
Object
,
Metadata
All known sub-classes:
MetadataHash
Namespace:
Gegl
Package:
gegl-0.4
Content:
Properties:
public
string
artist
{
get
;
set
; }
Name of image creator.
public
string
comment
{
get
;
set
; }
Miscellaneous comment; conversion from GIF comment.
public
string
copyright
{
get
;
set
; }
Copyright notice.
public
string
description
{
get
;
set
; }
Description of image (possibly long).
public
string
disclaimer
{
get
;
set
; }
Legal disclaimer.
public
string
file_module_name
{
get
; }
Current file loader/saver module name.
public
ResolutionUnit
resolution_unit
{
get
;
set
; }
A
ResolutionUnit
specifying units for the image resolution (density).
public
double
resolution_x
{
get
;
set
; }
X resolution or density in dots per unit.
public
double
resolution_y
{
get
;
set
; }
Y resolution or density in dots per unit.
public
string
software
{
get
;
set
; }
Software used to create the image.
public
string
source
{
get
;
set
; }
Device used to create the image.
public
DateTime
timestamp
{
owned
get
;
set
; }
Time of original image creation.
public
string
title
{
get
;
set
; }
Short (one line) title or caption for image.
public
string
warning
{
get
;
set
; }
Warning of nature of content.
Creation methods:
protected
MetadataStore
()
Methods:
public
virtual
void
_declare
(
ParamSpec
pspec,
bool
shadow)
The _declare virtual method creates a metadata variable in the underlying data store.
public
virtual
unowned
Value
?
_get_value
(
string
name)
Return a pointer to a
Value
with the value of the metadata variable or
null
if not declared or the variable does not contain a valid value.
public
void
declare
(
ParamSpec
pspec)
Declare a metadata value using a
ParamSpec
.
public
unowned
string
get_artist
()
Get name of image creator.
public
unowned
string
get_comment
()
Get the comment.
public
unowned
string
get_copyright
()
Get the copyright notice.
public
unowned
string
get_description
()
Get description of image.
public
unowned
string
get_disclaimer
()
Get the legal disclaimer.
public
unowned
string
get_file_module_name
()
Return the name registered by the current file module.
public
ResolutionUnit
get_resolution_unit
()
Get the units used for resolution.
public
double
get_resolution_x
()
Get the X resolution or density in dots per unit.
public
double
get_resolution_y
()
Get the Y resolution or density in dots per unit.
public
unowned
string
get_software
()
Get software used to create the image.
public
unowned
string
get_source
()
Get device used to create the image.
public
unowned
string
get_string
(
string
name)
A slightly more efficient version of
get_value
for string values avoiding a duplication.
public
DateTime
get_timestamp
()
Get time of original image creation.
public
unowned
string
get_title
()
Get title or caption for image.
public
void
get_value
(
string
name,
ref
Value
value)
Retrieve the metadata value.
public
unowned
string
get_warning
()
Get warning.
public
virtual
bool
has_value
(
string
name)
Test whether the
MetadataStore
contains a value for the specified name.
public
void
notify
(
ParamSpec
pspec,
bool
shadow)
notify
is called by subclasses when the value of a metadata variable changes.
public
void
register
(
string
local_name,
string
name,
ValueTransform
transform)
public
virtual
void
register_hook
(
string
file_module_name,
uint
flags)
This method is called after a file loader or saver registers a
MetadataMap
and before any further processing takes place.
public
void
set_artist
(
string
artist)
Set name of image creator.
public
void
set_comment
(
string
comment)
Set the miscellaneous comment; conversion from GIF comment.
public
void
set_copyright
(
string
copyright)
Set the copyright notice.
public
void
set_description
(
string
description)
Set description of image.
public
void
set_disclaimer
(
string
disclaimer)
Set the legal disclaimer.
public
void
set_resolution_unit
(
ResolutionUnit
unit)
Set the units used for the resolution (density) values.
public
void
set_resolution_x
(
double
resolution_x)
Set the X resolution or density in dots per unit.
public
void
set_resolution_y
(
double
resolution_y)
Set the Y resolution or density in dots per unit.
public
void
set_software
(
string
software)
Set software used to create the image.
public
void
set_source
(
string
source)
Set device used to create the image.
public
void
set_string
(
string
name,
string
string)
A slightly more efficient version of
set_value
for string values avoiding a duplication.
public
void
set_timestamp
(
DateTime
timestamp)
Set time of original image creation.
public
void
set_title
(
string
title)
Set title or caption for image.
public
virtual
void
set_value
(
string
name,
Value
value)
Set the specified metadata value.
public
void
set_warning
(
string
warning)
Set the warning of nature of content.
public
Type
typeof_value
(
string
name)
Get the declared type of the value in the
MetadataStore
.
Signals:
public
signal
void
changed
(
ParamSpec
pspec)
`
changed
` is emitted when a metadata value is changed.
public
signal
bool
generate_value
(
ParamSpec
pspec,
ref
Value
value)
If a signal handler is connected to `
generate_value
` a signal is emitted when the file module accesses a value using
gegl_metadata_get_value
.
public
signal
void
mapped
(
string
file_module,
bool
exclude_unmapped)
`
mapped
` is emitted after a file module registers a mapping and before other processing takes place.
public
signal
bool
parse_value
(
ParamSpec
pspec,
ref
Value
value)
If a signal handler is connected to `
parse_value
` a signal is emitted when the file module accesses a value using
gegl_metadata_set_value
.
public
signal
void
unmapped
(
string
file_module,
string
local_name)
`
unmapped
` is emitted when a file module tries to look up an unmapped metadata name.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface Gegl.Metadata
get_resolution
iter_get_value
iter_init
iter_lookup
iter_next
iter_set_value
register_map
set_resolution
unregister_map