XCSF  1.4.7
XCSF learning classifier system
config.c File Reference

Configuration file (JSON) handling functions. More...

#include "config.h"
#include "param.h"
Include dependency graph for config.c:

Go to the source code of this file.

Macros

#define MAXLEN   (127)
 Maximum config file line length to read. More...
 

Functions

static void config_trim (char *s)
 Removes tabs/spaces/lf/cr. More...
 
void config_read (struct XCSF *xcsf, const char *filename)
 Reads the specified configuration file. More...
 

Detailed Description

Configuration file (JSON) handling functions.

Author
Richard Preen rpree.nosp@m.n@gm.nosp@m.ail.c.nosp@m.om
Date
2015–2021.

Definition in file config.c.

Macro Definition Documentation

◆ MAXLEN

#define MAXLEN   (127)

Maximum config file line length to read.

Definition at line 27 of file config.c.

Function Documentation

◆ config_read()

void config_read ( struct XCSF xcsf,
const char *  filename 
)

Reads the specified configuration file.

Parameters
[in]xcsfThe XCSF data structure.
[in]filenameThe name of the configuration file.

Definition at line 50 of file config.c.

References config_trim(), MAXLEN, and param_json_import().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ config_trim()

static void config_trim ( char *  s)
static

Removes tabs/spaces/lf/cr.

Parameters
[in]sThe line to trim.

Definition at line 34 of file config.c.

Referenced by config_read().

Here is the caller graph for this function: