Main Page   File List   File Members  

value.c File Reference

#include <stdio.h>
#include <stdarg.h>
#include <gtk/gtk.h>
#include "value.h"
#include "mem.h"

Functions

void value_set (struct s_value *myval, valuetype_t type,...)
void value_unset (struct s_value myval)
void value_translate (struct s_value to, struct s_value from)
void value_copy (struct s_value *to, struct s_value *from)

Detailed Description

Author:
Guillaume Bour. 2002
Version:
0.1
Date:
28/02/2002
values management


Function Documentation

void value_copy struct s_value *    to,
struct s_value *    from
 

Value copy.

visibility :: public

Parameters:
to  the destination value
from  the source value
Returns:
<none>

void value_set struct s_value *    myval,
valuetype_t    type,
...   
 

Value initialisation.

visibility :: public

Remarks:
1. value is not a standalone variable. it's always included into a class (or one of its subtypes). So we don't have to allocate it.
Parameters:
myval  the value (a pointer)
type  the value type(int, bool, ...)
value  the value value(3, TRUE, ...)
Returns:
<none>

void value_translate struct s_value    to,
struct s_value    from
 

Value translation.

visibility :: public

Parameters:
to  the destination value
from  the source value
Returns:
<none>

void value_unset struct s_value    myval
 

Value desinitialisation.

visibility :: public

@remarks: 1. the value is not a standalone variable, so we don't have to free it. We must just free it's content if it's a string pointer

Parameters:
val  the value to clean
Returns:
<none>


Generated on Tue Aug 6 13:21:20 2002 for lafontaine by doxygen1.2.15