MISR Toolkit  1.5.1
Macros | Functions
fmtvalue.c File Reference
#include <ctype.h>
#include <math.h>
#include "odldef.h"
#include "odlinter.h"

Go to the source code of this file.

Macros

#define indentf(X)   for (i=0 ; i < X ; i++) stmt[len++] = ' '
 
#define TAB_SIZE   8
 
#define MIN_LINE_LENGTH   40
 
#define MAX_LEFT_MARGIN   32
 
#define MAX_RIGHT_MARGIN   317
 
#define indentf(X)   for (i=0 ; i < X ; i++) stmt[len++] = ' '
 
#define MIN_LINE_LENGTH   40
 
#define MAX_LEFT_MARGIN   32
 
#define MAX_RIGHT_MARGIN   317
 

Functions

int ODLFormatInteger (char stmt[], VALUE_DATA *item)
 
int ODLFormatReal (char *stmt, VALUE_DATA *item)
 
int ODLFormatUnits (char *stmt, struct ODLUnits *units)
 
int ODLFormatSymbol (char *stmt, VALUE_DATA *item)
 
int ODLFormatDate (char *stmt, VALUE_DATA *item)
 
int ODLFormatTime (char *stmt, VALUE_DATA *item)
 
int ODLFormatDateTime (char *stmt, VALUE_DATA *item)
 
int ODLFormatString (char stmt[], VALUE_DATA *item, int *column, int left_margin, int right_margin, int format_flag, int is_pointer)
 
int ODLFormatComment (char *stmt, char *comment, int left_margin, int right_margin)
 

Macro Definition Documentation

◆ indentf [1/2]

#define indentf (   X)    for (i=0 ; i < X ; i++) stmt[len++] = ' '

◆ indentf [2/2]

#define indentf (   X)    for (i=0 ; i < X ; i++) stmt[len++] = ' '

◆ MAX_LEFT_MARGIN [1/2]

#define MAX_LEFT_MARGIN   32

◆ MAX_LEFT_MARGIN [2/2]

#define MAX_LEFT_MARGIN   32

◆ MAX_RIGHT_MARGIN [1/2]

#define MAX_RIGHT_MARGIN   317

◆ MAX_RIGHT_MARGIN [2/2]

#define MAX_RIGHT_MARGIN   317

◆ MIN_LINE_LENGTH [1/2]

#define MIN_LINE_LENGTH   40

◆ MIN_LINE_LENGTH [2/2]

#define MIN_LINE_LENGTH   40

◆ TAB_SIZE

#define TAB_SIZE   8

Function Documentation

◆ ODLFormatComment()

int ODLFormatComment ( char *  stmt,
char *  comment,
int  left_margin,
int  right_margin 
)

Definition at line 854 of file fmtvalue.c.

◆ ODLFormatDate()

int ODLFormatDate ( char *  stmt,
VALUE_DATA item 
)

Definition at line 409 of file fmtvalue.c.

◆ ODLFormatDateTime()

int ODLFormatDateTime ( char *  stmt,
VALUE_DATA item 
)

Definition at line 582 of file fmtvalue.c.

◆ ODLFormatInteger()

int ODLFormatInteger ( char  stmt[],
VALUE_DATA item 
)

Definition at line 80 of file fmtvalue.c.

◆ ODLFormatReal()

int ODLFormatReal ( char *  stmt,
VALUE_DATA item 
)

Definition at line 181 of file fmtvalue.c.

◆ ODLFormatString()

int ODLFormatString ( char  stmt[],
VALUE_DATA item,
int *  column,
int  left_margin,
int  right_margin,
int  format_flag,
int  is_pointer 
)

Definition at line 636 of file fmtvalue.c.

◆ ODLFormatSymbol()

int ODLFormatSymbol ( char *  stmt,
VALUE_DATA item 
)

Definition at line 355 of file fmtvalue.c.

◆ ODLFormatTime()

int ODLFormatTime ( char *  stmt,
VALUE_DATA item 
)

Definition at line 484 of file fmtvalue.c.

◆ ODLFormatUnits()

int ODLFormatUnits ( char *  stmt,
struct ODLUnits units 
)

Definition at line 257 of file fmtvalue.c.


MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:53