Midgard2 Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
#include <midgard/midgard.h> struct MidgardReflectorObject; const gchar * midgard_reflector_object_get_property_primary (const gchar *classname
); const gchar * midgard_reflector_object_get_property_up (const gchar *classname
); const gchar * midgard_reflector_object_get_property_parent (const gchar *classname
); const gchar * midgard_reflector_object_get_property_unique (const gchar *classname
); gchar ** midgard_reflector_object_list_children (const gchar *classname
,guint *n_children
); gboolean midgard_reflector_object_has_metadata_class (const gchar *classname
); const gchar * midgard_reflector_object_get_metadata_class (const gchar *classname
); const gchar * midgard_reflector_object_get_schema_value (const gchar *classname
,const gchar *name
);
const gchar * midgard_reflector_object_get_property_primary
(const gchar *classname
);
|
Name of the class |
Returns : |
Name of property which is defined as primary for given class or NULL . [transfer none]
|
Since 10.05
const gchar * midgard_reflector_object_get_property_up
(const gchar *classname
);
|
Name of the class |
Returns : |
Name of property which is defined as 'up' for given class or NULL . [transfer none]
|
Since 10.05
const gchar * midgard_reflector_object_get_property_parent
(const gchar *classname
);
|
Name of the class |
Returns : |
Name of property which is defined as 'parent' for given class or NULL . [transfer none]
|
Since 10.05
const gchar * midgard_reflector_object_get_property_unique
(const gchar *classname
);
|
Name of the class |
Returns : |
Name of property which is defined unique for given class, or NULL . [transfer none]
|
Since 10.05
gchar ** midgard_reflector_object_list_children (const gchar *classname
,guint *n_children
);
Returns newly allocated, children ( in midgard tree ) classes' names. Returned array should be freed if no longer needed without freeing array's elements.
|
Name of the class |
|
pointer to store number of children classes |
Returns : |
array of strings or NULL . [array length=n_children][transfer container]
|
Since 10.05
gboolean midgard_reflector_object_has_metadata_class
(const gchar *classname
);
const gchar * midgard_reflector_object_get_metadata_class
(const gchar *classname
);
|
Name of the class |
Returns : |
Name of the metadata class of the given one or NULL . [transfer none]
|
Since 10.05