full version of beta including resources and binary
This commit is contained in:
30
include/mightywatt_log.h
Normal file
30
include/mightywatt_log.h
Normal file
@ -0,0 +1,30 @@
|
||||
#ifndef MIGHTYWATT_LOG_H
|
||||
#define MIGHTYWATT_LOG_H
|
||||
|
||||
#include "mightywatt.h"
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct mw_csv_logger mw_csv_logger;
|
||||
|
||||
typedef enum {
|
||||
MW_CSV_UNITS_ENGINEERING = 0,
|
||||
MW_CSV_UNITS_RAW = 1
|
||||
} mw_csv_units_mode;
|
||||
|
||||
int mw_csv_logger_open(mw_csv_logger **out_logger, const char *path, mw_csv_units_mode units_mode);
|
||||
void mw_csv_logger_close(mw_csv_logger *logger);
|
||||
int mw_csv_logger_write(mw_csv_logger *logger,
|
||||
const char *context,
|
||||
long step_index,
|
||||
const mw_report *report);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user