ToutDoux : Reference manual
<<< Previous PageHomeUpNext Page >>>

TdFunction

Name

TdFunction -- Function

Synopsis

enumTdFunctionLanguage;
strucTdFunction
GtkObject*td_function_load
(XmlDoc *doc,
XmlNs *ns,
XmlNode *cur_root);
voidtd_function_add_property
(TdFunction *function,
gchar *property_name,
gchar *property_value);
GtkObject*td_function_new
(void);
gchar*td_function_property_value
(TdFunction *function,
gchar *property_name);
voidtd_function_destroy
(TdFunction *function);
gbooleantd_function_activate
(TdFunction *function);
TdFunctionLanguagetd_function_language_parse
(gchar *value);
voidtd_function_add_input
(TdFunction *function,
gchar *input);
voidtd_function_add_output
(TdFunction *function,
gchar *output);
gchar*td_function_language_print
(TdFunctionLanguage value);

Description

Details

enum TdFunctionLanguage

typedef enum
{
TD_FUNCTION_0,
TD_FUNCTION_C,
TD_FUNCTION_SQL,
}TdFunctionLanguage;

fr: Language de fonction

en: Function language

TD_FUNCTION_0NULL
TD_FUNCTION_CFonction en C - C function
TD_FUNCTION_SQLFonction en SQL - SQL function

struct TdFunction

struct TdFunction
{
gchar *name;
gchar *comment;
gchar *language;
gchar *definition;
GList *input;
GList *output;
GList *property_name;
GList *property_value;
};

fr: objet fonction

en: Function object

gchar *nameNom - Name
gchar *commentCommentaire - Comment
gchar *languageLanguage
gchar *definitionDéfinition - Definition
GList *inputEntrées - Inputs
GList *outputSorties - Outputs
GList *property_nameNom des propriétés - Properties name
GList *property_valueValeur des propriétés - Properties value

td_function_load ()

GtkObject*td_function_load
(XmlDoc *doc,
XmlNs *ns,
XmlNode *cur_root);

fr: Retourne la fonction correspondant à la localisation XML

en: Returns the function corresponding the XML location

Return value: function

doc : XML document
ns : XML namespace
cur_root : XML node

td_function_add_property ()

voidtd_function_add_property
(TdFunction *function,
gchar *property_name,
gchar *property_value);

fr: Ajoute la propriété à la fonction

en: Adds the property to function

function : function
property_name : property's name
property_value : property's value

td_function_new ()

GtkObject*td_function_new
(void);

fr: Créé une nouvelle fonction

en: Creates new function

Return value: function parameters


td_function_property_value ()

gchar*td_function_property_value
(TdFunction *function,
gchar *property_name);

fr: Retourne la valeur de la propriété du la fonction

en: Returns the value of function property

Return value: string

function : function
property_name : property name

td_function_destroy ()

voidtd_function_destroy
(TdFunction *function);

fr: Détruit la fonction

en: Destroys the function

function : function

td_function_activate ()

gbooleantd_function_activate
(TdFunction *function);

fr: Execute la fonction

en: Executes the functions

Return value: FALSE on error

function : function

td_function_language_parse ()

TdFunctionLanguagetd_function_language_parse
(gchar *value);

fr: Retourne le 'TdFunctionLang' correspondant à la chaîne de caractères

en: Returns the 'TdFunctionLang' corresponding the string

Return value: function language

value : string

td_function_add_input ()

voidtd_function_add_input
(TdFunction *function,
gchar *input);

fr: Ajoute l'entrée à la fonction

en: Adds the input to function

function : function
input : input

td_function_add_output ()

voidtd_function_add_output
(TdFunction *function,
gchar *output);

fr: Ajoute la sortie à la fonction

en: Adds the output to the function

function : function
output : output

td_function_language_print ()

gchar*td_function_language_print
(TdFunctionLanguage value);

fr: Retourne la chaîne de caractères correspondant au 'TdFunctionLanguage'

en: Returns the string corresponding the 'TdFunctionLanguage'

Return value: string

value : string

See Also

<<< Previous PageHomeUpNext Page >>>
IndexIndex