MidgardReflectorObject

MidgardReflectorObject

Synopsis

#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);

Object Hierarchy

  GObject
   +----MidgardReflectorObject

Description

Details

struct MidgardReflectorObject

struct MidgardReflectorObject;


midgard_reflector_object_get_property_primary ()

const gchar *       midgard_reflector_object_get_property_primary
                                                        (const gchar *classname);

classname :

Name of the class

Returns :

Name of property which is defined as primary for given class or NULL. [transfer none]

Since 10.05


midgard_reflector_object_get_property_up ()

const gchar *       midgard_reflector_object_get_property_up
                                                        (const gchar *classname);

classname :

Name of the class

Returns :

Name of property which is defined as 'up' for given class or NULL. [transfer none]

Since 10.05


midgard_reflector_object_get_property_parent ()

const gchar *       midgard_reflector_object_get_property_parent
                                                        (const gchar *classname);

classname :

Name of the class

Returns :

Name of property which is defined as 'parent' for given class or NULL. [transfer none]

Since 10.05


midgard_reflector_object_get_property_unique ()

const gchar *       midgard_reflector_object_get_property_unique
                                                        (const gchar *classname);

classname :

Name of the class

Returns :

Name of property which is defined unique for given class, or NULL. [transfer none]

Since 10.05


midgard_reflector_object_list_children ()

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.

classname :

Name of the class

n_children :

pointer to store number of children classes

Returns :

array of strings or NULL. [array length=n_children][transfer container]

Since 10.05


midgard_reflector_object_has_metadata_class ()

gboolean            midgard_reflector_object_has_metadata_class
                                                        (const gchar *classname);


midgard_reflector_object_get_metadata_class ()

const gchar *       midgard_reflector_object_get_metadata_class
                                                        (const gchar *classname);

classname :

Name of the class

Returns :

Name of the metadata class of the given one or NULL. [transfer none]

Since 10.05


midgard_reflector_object_get_schema_value ()

const gchar *       midgard_reflector_object_get_schema_value
                                                        (const gchar *classname,
                                                         const gchar *name);

classname :

Name of the class

name :

node's name declared for given klass

Returns :

value of given node's name or NULL. [transfer none]

Since 10.05