/home/laradmin/lar/utils/mit_darpa_logs_player/include/mit_darpa_logs_player/config.h File Reference

header file to config.cpp Check the LCM instructions for more info More...

#include <stdio.h>
#include <features.h>
#include <bits/wordsize.h>
#include <gnu/stubs-32.h>
#include <stddef.h>
#include <bits/types.h>
#include <stdarg.h>
Include dependency graph for config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.



typedef struct _Config Config
Configconfig_alloc (void)
void config_free (Config *conf)
int config_get_array_len (Config *conf, const char *key)
int config_get_boolean (Config *conf, const char *key, int *val)
int config_get_boolean_array (Config *conf, const char *key, int *vals, int len)
int config_get_boolean_or_default (Config *conf, const char *key, int def)
int config_get_default_src (char *buf, int buflen)
int config_get_double (Config *conf, const char *key, double *val)
int config_get_double_array (Config *conf, const char *key, double *vals, int len)
double config_get_double_or_default (Config *conf, const char *key, double def)
double config_get_double_or_fail (Config *conf, const char *key)
int config_get_int (Config *conf, const char *key, int *val)
int config_get_int_array (Config *conf, const char *key, int *vals, int len)
int config_get_int_or_default (Config *conf, const char *key, int def)
int config_get_num_subkeys (Config *conf, const char *containerKey)
int config_get_str (Config *conf, const char *key, char **val)
int config_get_str_array (Config *conf, const char *key, char **vals, int len)
char ** config_get_str_array_alloc (Config *conf, const char *key)
char * config_get_str_or_default (Config *conf, const char *key, char *def)
char * config_get_str_or_fail (Config *conf, const char *key)
char ** config_get_subkeys (Config *conf, const char *containerKey)
int config_has_key (Config *conf, const char *key)
Configconfig_parse_default (void)
Configconfig_parse_file (FILE *f, char *filename)
int config_print (Config *conf)
int config_set_boolean (Config *conf, const char *key, int val)
int config_set_boolean_array (Config *conf, const char *key, int *vals, int len)
int config_set_double (Config *conf, const char *key, double val)
int config_set_double_array (Config *conf, const char *key, double *vals, int len)
int config_set_int (Config *conf, const char *key, int val)
int config_set_int_array (Config *conf, const char *key, int *vals, int len)
int config_set_str (Config *conf, const char *key, char *val)
int config_set_str_array (Config *conf, const char *key, char **vals, int len)
void config_str_array_free (char **data)

Detailed Description

header file to config.cpp Check the LCM instructions for more info

Definition in file config.h.


Typedef Documentation

typedef struct _Config Config

Definition at line 42 of file config.h.


Function Documentation

Config* config_alloc ( void   ) 

Definition at line 1001 of file config.cpp.

void config_free ( Config conf  ) 

Definition at line 639 of file config.cpp.

int config_get_array_len ( Config conf,
const char *  key 
)

Returns: the number of elements in the specified array, or -1 if the key does not correspond to an array

Definition at line 963 of file config.cpp.

int config_get_boolean ( Config conf,
const char *  key,
int *  val 
)

Definition at line 780 of file config.cpp.

int config_get_boolean_array ( Config conf,
const char *  key,
int *  vals,
int  len 
)

Definition at line 897 of file config.cpp.

int config_get_boolean_or_default ( Config conf,
const char *  key,
int  def 
)

Definition at line 844 of file config.cpp.

int config_get_default_src ( char *  buf,
int  buflen 
)

Copies the filename of the default config file into buf. In the future, it might also indicate that LC is to be used for the config source

Returns: 0 on success, -1 if buf isn't big enough

Definition at line 629 of file config.cpp.

int config_get_double ( Config conf,
const char *  key,
double *  val 
)

Definition at line 790 of file config.cpp.

int config_get_double_array ( Config conf,
const char *  key,
double *  vals,
int  len 
)

Definition at line 920 of file config.cpp.

double config_get_double_or_default ( Config conf,
const char *  key,
double  def 
)

Definition at line 854 of file config.cpp.

double config_get_double_or_fail ( Config conf,
const char *  key 
)

Definition at line 799 of file config.cpp.

int config_get_int ( Config conf,
const char *  key,
int *  val 
)

Definition at line 770 of file config.cpp.

int config_get_int_array ( Config conf,
const char *  key,
int *  vals,
int  len 
)

Definition at line 874 of file config.cpp.

int config_get_int_or_default ( Config conf,
const char *  key,
int  def 
)

Definition at line 834 of file config.cpp.

int config_get_num_subkeys ( Config conf,
const char *  containerKey 
)

Definition at line 726 of file config.cpp.

int config_get_str ( Config conf,
const char *  key,
char **  val 
)

Definition at line 812 of file config.cpp.

int config_get_str_array ( Config conf,
const char *  key,
char **  vals,
int  len 
)

Definition at line 943 of file config.cpp.

char** config_get_str_array_alloc ( Config conf,
const char *  key 
)

Definition at line 973 of file config.cpp.

char* config_get_str_or_default ( Config conf,
const char *  key,
char *  def 
)

Definition at line 864 of file config.cpp.

char* config_get_str_or_fail ( Config conf,
const char *  key 
)

Definition at line 822 of file config.cpp.

char** config_get_subkeys ( Config conf,
const char *  containerKey 
)

Definition at line 744 of file config.cpp.

int config_has_key ( Config conf,
const char *  key 
)

Returns: 1 if the key is present, 0 if not

Definition at line 720 of file config.cpp.

Config* config_parse_default ( void   ) 

Definition at line 603 of file config.cpp.

Config* config_parse_file ( FILE *  f,
char *  filename 
)

Definition at line 576 of file config.cpp.

int config_print ( Config conf  ) 

Definition at line 556 of file config.cpp.

int config_set_boolean ( Config conf,
const char *  key,
int  val 
)

Definition at line 1086 of file config.cpp.

int config_set_boolean_array ( Config conf,
const char *  key,
int *  vals,
int  len 
)

Definition at line 1147 of file config.cpp.

int config_set_double ( Config conf,
const char *  key,
double  val 
)

Definition at line 1094 of file config.cpp.

int config_set_double_array ( Config conf,
const char *  key,
double *  vals,
int  len 
)

Definition at line 1179 of file config.cpp.

int config_set_int ( Config conf,
const char *  key,
int  val 
)

Definition at line 1076 of file config.cpp.

int config_set_int_array ( Config conf,
const char *  key,
int *  vals,
int  len 
)

Definition at line 1117 of file config.cpp.

int config_set_str ( Config conf,
const char *  key,
char *  val 
)

Definition at line 1104 of file config.cpp.

int config_set_str_array ( Config conf,
const char *  key,
char **  vals,
int  len 
)

Definition at line 1209 of file config.cpp.

void config_str_array_free ( char **  data  ) 

Definition at line 991 of file config.cpp.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines


mit_darpa_logs_player
Author(s): Miguel Oliveira
autogenerated on Wed Jul 23 04:34:16 2014