MgField

MgField — Interface to represent a generic field (for tables's fields, etc).

Synopsis




            MgField;
GType       mg_field_get_type               (void);
MgEntity*   mg_field_get_entity             (MgField *iface);
MgServerDataType* mg_field_get_data_type    (MgField *iface);
const gchar* mg_field_get_name              (MgField *iface);
const gchar* mg_field_get_description       (MgField *iface);

Object Hierarchy


  GInterface
   +----MgField

Prerequisites

MgField requires GObject.

Known Implementations

MgField is implemented by MgQfValue, MgQfField, MgQfAll, MgDbField and MgQfFunc.

Description

Each object implementing this interface MUST derive from the MgBase object.

Details

MgField

typedef struct _MgField MgField;


mg_field_get_type ()

GType       mg_field_get_type               (void);

Returns :

mg_field_get_entity ()

MgEntity*   mg_field_get_entity             (MgField *iface);

Get a reference to the object implementing the MgEntity interface to which the object implementing the MgField is attached to.

iface : an object which implements the MgField interface
Returns : the object implementing the MgEntity interface

mg_field_get_data_type ()

MgServerDataType* mg_field_get_data_type    (MgField *iface);

Get a data type of the object implementing the MgField interface

iface : an object which implements the MgField interface
Returns : the corresponding MgServerDataType

mg_field_get_name ()

const gchar* mg_field_get_name              (MgField *iface);

Get the name of the object implementing the MgField interface

iface : an object which implements the MgField interface
Returns : the name

mg_field_get_description ()

const gchar* mg_field_get_description       (MgField *iface);

Get the description of the object implementing the MgField interface

iface : an object which implements the MgField interface
Returns : the description