GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
value.c File Reference
#include <stdlib.h>
#include <grass/dbmi.h>
Include dependency graph for value.c:

Go to the source code of this file.

Functions

int db_test_value_isnull (dbValue *value)
 
int db_get_value_int (dbValue *value)
 
double db_get_value_double (dbValue *value)
 
double db_get_value_as_double (dbValue *value, int ctype)
 
const char * db_get_value_string (dbValue *value)
 
int db_get_value_year (dbValue *value)
 
int db_get_value_month (dbValue *value)
 
int db_get_value_day (dbValue *value)
 
int db_get_value_hour (dbValue *value)
 
int db_get_value_minute (dbValue *value)
 
double db_get_value_seconds (dbValue *value)
 
void db_set_value_null (dbValue *value)
 
void db_set_value_not_null (dbValue *value)
 
void db_set_value_int (dbValue *value, int i)
 
void db_set_value_double (dbValue *value, double d)
 
int db_set_value_string (dbValue *value, const char *s)
 
void db_set_value_year (dbValue *value, int year)
 
void db_set_value_month (dbValue *value, int month)
 
void db_set_value_day (dbValue *value, int day)
 
void db_set_value_hour (dbValue *value, int hour)
 
void db_set_value_minute (dbValue *value, int minute)
 
void db_set_value_seconds (dbValue *value, double seconds)
 
int db_test_value_datetime_current (dbValue *value)
 
void db_set_value_datetime_current (dbValue *value)
 
void db_set_value_datetime_not_current (dbValue *value)
 
void db_copy_value (dbValue *dst, dbValue *src)
 
void db_CatValArray_init (dbCatValArray *arr)
 
void db_CatValArray_free (dbCatValArray *arr)
 
int db_CatValArray_alloc (dbCatValArray *arr, int n)
 
int db_CatValArray_realloc (dbCatValArray *arr, int n)
 

Function Documentation

int db_CatValArray_alloc ( dbCatValArray *  arr,
int  n 
)

Definition at line 372 of file value.c.

References n.

Referenced by db_select_CatValArray(), and Vedit_bulk_labeling().

void db_CatValArray_free ( dbCatValArray *  arr)
void db_CatValArray_init ( dbCatValArray *  arr)

Definition at line 335 of file value.c.

References NULL.

Referenced by IL_vector_input_data_2d(), NetA_get_node_costs(), and Vect_net_build_graph().

int db_CatValArray_realloc ( dbCatValArray *  arr,
int  n 
)

Definition at line 387 of file value.c.

References n.

void db_copy_value ( dbValue *  dst,
dbValue *  src 
)

Definition at line 313 of file value.c.

References db_copy_string().

Referenced by db_get_column(), and db_select_value().

double db_get_value_as_double ( dbValue *  value,
int  ctype 
)

Definition at line 44 of file value.c.

References db_get_value_double(), db_get_value_int(), and db_get_value_string().

int db_get_value_day ( dbValue *  value)

Definition at line 103 of file value.c.

Referenced by db_convert_value_datetime_into_string().

double db_get_value_double ( dbValue *  value)
int db_get_value_hour ( dbValue *  value)

Definition at line 114 of file value.c.

Referenced by db_convert_value_datetime_into_string().

int db_get_value_minute ( dbValue *  value)

Definition at line 125 of file value.c.

Referenced by db_convert_value_datetime_into_string().

int db_get_value_month ( dbValue *  value)

Definition at line 92 of file value.c.

Referenced by db_convert_value_datetime_into_string().

double db_get_value_seconds ( dbValue *  value)

Definition at line 136 of file value.c.

Referenced by db_convert_value_datetime_into_string().

const char* db_get_value_string ( dbValue *  value)
int db_get_value_year ( dbValue *  value)

Definition at line 81 of file value.c.

Referenced by db_convert_value_datetime_into_string().

void db_set_value_datetime_current ( dbValue *  value)

Definition at line 288 of file value.c.

References db_set_value_not_null().

Referenced by db_convert_Cstring_to_value_datetime().

void db_set_value_datetime_not_current ( dbValue *  value)
void db_set_value_day ( dbValue *  value,
int  day 
)

Definition at line 229 of file value.c.

References db_set_value_datetime_not_current().

Referenced by db_convert_Cstring_to_value_datetime().

void db_set_value_double ( dbValue *  value,
double  d 
)

Definition at line 181 of file value.c.

References db_set_value_not_null().

Referenced by db_convert_Cstring_to_value().

void db_set_value_hour ( dbValue *  value,
int  hour 
)

Definition at line 241 of file value.c.

References db_set_value_datetime_not_current().

Referenced by db_convert_Cstring_to_value_datetime().

void db_set_value_int ( dbValue *  value,
int  i 
)

Definition at line 169 of file value.c.

References db_set_value_not_null().

Referenced by db_convert_Cstring_to_value().

void db_set_value_minute ( dbValue *  value,
int  minute 
)

Definition at line 253 of file value.c.

References db_set_value_datetime_not_current().

Referenced by db_convert_Cstring_to_value_datetime().

void db_set_value_month ( dbValue *  value,
int  month 
)

Definition at line 217 of file value.c.

References db_set_value_datetime_not_current().

Referenced by db_convert_Cstring_to_value_datetime().

void db_set_value_not_null ( dbValue *  value)
void db_set_value_null ( dbValue *  value)

Definition at line 147 of file value.c.

void db_set_value_seconds ( dbValue *  value,
double  seconds 
)

Definition at line 265 of file value.c.

References db_set_value_datetime_not_current().

Referenced by db_convert_Cstring_to_value_datetime().

int db_set_value_string ( dbValue *  value,
const char *  s 
)

Definition at line 193 of file value.c.

References db_set_string(), and db_set_value_not_null().

Referenced by db_convert_Cstring_to_value().

void db_set_value_year ( dbValue *  value,
int  year 
)

Definition at line 205 of file value.c.

References db_set_value_datetime_not_current().

Referenced by db_convert_Cstring_to_value_datetime().

int db_test_value_datetime_current ( dbValue *  value)

Definition at line 277 of file value.c.

Referenced by db_convert_value_datetime_into_string().

int db_test_value_isnull ( dbValue *  value)

Definition at line 10 of file value.c.

Referenced by wxdigit.IVDigit::CopyCats(), db__copy_table(), and db_convert_value_to_string().