/Users/maurits/Documents/studie/afstuderen/biosphere/modules/fusion/util.h File Reference

#include <biosphere.h>

Include dependency graph for util.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bs_bool streq (const char *s1, const char *s2)
unsigned len (const char *s)
bs_bool decision_to_bool (const char *s)
double min (double s1, double s2, double s3)
double max (double s1, double s2, double s3)


Function Documentation

bs_bool decision_to_bool ( const char *  s  ) 

Convert a string containing a biometric decision to a bs_bool. Accepted string for TRUE are 1, ACCEPTED and ACCEPT, all the others will return FALSE.

Parameters:
s The string to convert
Returns:
The boolean value of the string.

Definition at line 28 of file util.c.

References FALSE, streq(), and TRUE.

Referenced by handle_fuse2_decision(), and handle_fuse3_decision().

Here is the call graph for this function:

unsigned len ( const char *  s  )  [inline]

Compute length of given string.

Parameters:
s The string
Returns:
The length.

Definition at line 20 of file util.c.

Referenced by bsmod_password_init(), connect_and_get(), create_biometric_decision_response(), create_biometric_response(), handle_http_get(), handle_http_post(), init_service(), make_answer(), receive_response(), send_http_error(), and set_definitions().

double max ( double  s1,
double  s2,
double  s3 
)

Definition at line 48 of file util.c.

Referenced by bsmod_stat_handle_avgminmax(), handle_fuse2(), and handle_fuse3().

double min ( double  s1,
double  s2,
double  s3 
)

Definition at line 40 of file util.c.

Referenced by bsmod_stat_handle_avgminmax(), handle_fuse2(), and handle_fuse3().

bs_bool streq ( const char *  s1,
const char *  s2 
)

Test for string equality.

Parameters:
s1 First string
s2 Second string
Returns:
True iff both strings are equal.

Definition at line 7 of file str.c.

References FALSE, and TRUE.


Generated on Tue Jul 17 09:51:21 2007 for Bio-SPHERE by  doxygen 1.5.1