OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
olog.c File Reference
#include <stdarg.h>
#include "olog.h"
#include "olog/loader.h"
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for olog.c:

Go to the source code of this file.

Classes

struct  olog
 

Macros

#define define_olog_print(name, level)
 

Functions

ologolog_create (olog_backend *backends, FILE *stream)
 
void olog_destroy (olog *olog)
 
bool olog_has_error (olog *olog)
 
bool olog_print_error (olog *olog, FILE *stream)
 
int olog_vprint (olog *olog, int8_t level, va_list args)
 
int olog_print (olog *olog, int level,...)
 

Macro Definition Documentation

◆ define_olog_print

#define define_olog_print (   name,
  level 
)
Value:
int olog_ ## name(olog *olog, ...){ \
va_list args; \
va_start(args, olog); \
int ret = olog_vprint(olog, level, args); \
va_end(args); \
return ret; \
}

Definition at line 125 of file olog.c.

Function Documentation

◆ olog_create()

olog* olog_create ( olog_backend backends,
FILE *  stream 
)

Definition at line 15 of file olog.c.

◆ olog_destroy()

void olog_destroy ( olog olog)

Definition at line 60 of file olog.c.

◆ olog_has_error()

bool olog_has_error ( olog olog)

Definition at line 73 of file olog.c.

◆ olog_print()

int olog_print ( olog olog,
int  level,
  ... 
)

Definition at line 117 of file olog.c.

◆ olog_print_error()

bool olog_print_error ( olog olog,
FILE *  stream 
)

Definition at line 86 of file olog.c.

◆ olog_vprint()

int olog_vprint ( olog olog,
int8_t  level,
va_list  args 
)

Definition at line 100 of file olog.c.

int olog_vprint(olog *olog, int8_t level, va_list args)
Definition: olog.c:100
Definition: olog.c:11
level
Definition: mapgen.py:186