NAF Core Library
libnaf 0.6.0 API documentation

exparse.h File Reference

NAF aggregation expression parser and aggregation configuration API. More...

#include <naf/autoinc.h>
#include <naf/nafcore.h>
#include <naf/filter.h>
#include <naf/sort.h>

Go to the source code of this file.


Data Structures

struct  _NAFAggConfig
 An aggregation configuration structure. More...

Defines

#define NAFZ_MAX_FANOUT   16
 Maximum fanout supported by the NAFAggConfig.

Typedefs

typedef _NAFAggConfig NAFAggConfig
 An aggregation configuration structure.

Functions

gboolean naf_exparse (int argc, char *argv[], NAFAggConfig *conf)
 Parse an aggregation expression from the command line into an aggregation configuration structure.
void naf_config_dump (NAFAggConfig *conf)
 Dump a filled configuration to the log.

Detailed Description

NAF aggregation expression parser and aggregation configuration API.


Typedef Documentation

typedef struct _NAFAggConfig NAFAggConfig

An aggregation configuration structure.

Filled in by naf_exparse() and by the application; used by the aggregation and match APIs.


Function Documentation

void naf_config_dump ( NAFAggConfig conf  ) 

Dump a filled configuration to the log.

Parameters:
conf configuration to dump

gboolean naf_exparse ( int  argc,
char *  argv[],
NAFAggConfig conf 
)

Parse an aggregation expression from the command line into an aggregation configuration structure.

See NAFAggConfig for information on the fields filled in by this call.

Parameters:
argc argument count
argv argument list; must contain only valid aggregation expression tokens
conf configuration to fill in
Returns:
TRUE on success; FALSE (and logs an error) on failure.