OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
lablib3.c File Reference
#include "lablib3.h"
Include dependency graph for lablib3.c:

Go to the source code of this file.

Functions

OBJDESC * OdlParseLabelFile (char *filespec, char *message_fname, MASK expand, unsigned short suppress_messages)
 
OBJDESC * OdlParseLabelString (char *odl_string, char *message_fname, MASK expand, unsigned short suppress_messages)
 
OBJDESC * OdlExpandLabelFile (OBJDESC *object, char *message_fname, MASK expand, unsigned short suppress_messages)
 
unsigned short ExpandIsRecursive (KEYWORD *keyword, char *exp_fname)
 
OBJDESC * OdlFindObjDesc (OBJDESC *start_object, const char *object_class, const char *keyword_name, char *keyword_value, unsigned long object_position, unsigned short search_scope)
 
OBJDESC * OdlNextObjDesc (OBJDESC *object, unsigned long root_level, unsigned short *search_scope)
 
OBJDESC * OdlCutObjDesc (OBJDESC *object)
 
OBJDESC * OdlPasteObjDesc (OBJDESC *new_object, OBJDESC *parent_object)
 
OBJDESC * OdlPasteObjDescBefore (OBJDESC *new_object, OBJDESC *old_object)
 
OBJDESC * OdlPasteObjDescAfter (OBJDESC *new_object, OBJDESC *old_object)
 
OBJDESC * OdlCopyObjDesc (OBJDESC *object)
 
OBJDESC * OdlNewObjDesc (const char *object_class, const char *pre_comment, const char *line_comment, const char *post_comment, const char *end_comment, const char *file_name, short is_a_group, long line_number)
 
char * OdlGetLabelVersion (OBJDESC *object)
 
char * OdlGetObjDescClassName (OBJDESC *object)
 
int OdlGetObjDescChildCount (OBJDESC *object)
 
int OdlGetObjDescLevel (OBJDESC *object)
 
void OdlAdjustObjDescLevel (OBJDESC *object)
 
OBJDESC * OdlGetObjDescParent (OBJDESC *object)
 
KEYWORD * OdlFindKwd (OBJDESC *start_object, const char *keyword_name, char *keyword_value, unsigned long keyword_position, unsigned short search_scope)
 
KEYWORD * OdlNextKwd (KEYWORD *start_keyword, char *keyword_name, char *keyword_value, unsigned long keyword_position, unsigned short search_scope)
 
KEYWORD * OdlCutKwd (KEYWORD *keyword)
 
KEYWORD * OdlPasteKwd (KEYWORD *keyword, OBJDESC *object)
 
KEYWORD * OdlPasteKwdBefore (KEYWORD *new_keyword, KEYWORD *old_keyword)
 
KEYWORD * OdlPasteKwdAfter (KEYWORD *new_keyword, KEYWORD *old_keyword)
 
KEYWORD * OdlCopyKwd (KEYWORD *keyword)
 
KEYWORD * OdlNewKwd (char *keyword_name, char *value_text, char *pre_comment, char *line_comment, char *file_name, long line_number)
 
KEYWORD * OdlGetFirstKwd (OBJDESC *object)
 
KEYWORD * OdlGetNextKwd (KEYWORD *keyword)
 
char * OdlGetKwdValue (KEYWORD *keyword)
 
TB_STRING_LIST * OdlGetAllKwdValues (KEYWORD *keyword)
 
unsigned short OdlGetKwdValueType (KEYWORD *keyword)
 
char * OdlGetKwdUnit (KEYWORD *keyword)
 
char * OdlGetKwdName (KEYWORD *keyword)
 
OBJDESC * OdlFreeTree (OBJDESC *object)
 
KEYWORD * OdlFreeAllKwds (OBJDESC *object)
 
KEYWORD * OdlFreeKwd (KEYWORD *keyword)
 
FILE * OdlOpenMessageFile (const char *message_fname, FILE *message_fptr)
 
char * OdlGetFileName (KEYWORD *keyword, unsigned long *start_location, unsigned short *start_location_type)
 
char * OdlGetFileSpec (char *fname)
 
FILE * OdlLocateStart (char *filespec, unsigned long start_location, unsigned short start_location_type)
 
short OdlPrintMessage (const char *message_fname, FILE *message_fptr, long line_number, const char *text)
 
short OdlPrintLine (const char *message_fname, FILE *message_fptr, const char *text)
 
char * OdlFormatMessage (char *text)
 
void OdlPrintHierarchy (OBJDESC *object, char *message_fname, FILE *message_fptr)
 
void OdlPrintLabel (OBJDESC *object, char *message_fname, FILE *message_fptr, unsigned long root_level)
 
void OdlPrintKeywords (OBJDESC *object, char *message_fname, FILE *message_fptr)
 
OBJDESC * OdlParseFile (char *label_fname, FILE *label_fptr, char *message_fname, FILE *message_fptr, unsigned short suppress_messages, unsigned short suppress_metrics, unsigned short suppress_hierarchy, unsigned short ignore_missing_end)
 
short OdlNestingLevel (char *text, long *brace_nesting, long *paren_nesting)
 
short OdlValidBraces (char *text, long brace_nesting, long paren_nesting, char *message_fname, FILE *message_fptr, long line_number)
 
short OdlValidElement (char *text, char *message_fname, FILE *message_fptr, long line_number, long element_number)
 
short OdlValidEndObjDesc (OBJDESC *curr_object, char *equals, char *right_part, char *message_fname, FILE *message_fptr, long line_number, unsigned short group_type)
 
short OdlValidIdentifier (const char *id_name, const char *id_type, const char *message_fname, FILE *message_fptr, long line_number)
 
short OdlValidKwd (OBJDESC *curr_object, char *left_part, char *equals, char *right_part, char *message_fname, FILE *message_fptr, long line_number)
 
short OdlValidObjDesc (OBJDESC *curr_object, char *equals, char *right_part, char *message_fname, FILE *message_fptr, long line_number)
 
short OdlValidValueList (char *text, char *message_fname, FILE *message_fptr, long line_number)
 
unsigned short OdlWildCardCompare (const char *wildcard_text, const char *plain_text)
 
OBJDESC * OdlTraverseTree (OBJDESC *curr_object, unsigned long root_level)
 
char * OdlFirstWord (char *text)
 
char * OdlNextWord (char *text)
 
char * OdlValueStart (char *text)
 
char * OdlValueEnd (char *text)
 
char * OdlValueRowStart (char *text)
 
char * OdlValueRowEnd (char *text)
 
unsigned short OdlDataType (char *text)
 
char * OdlTypeString (unsigned short type, char *type_string)
 
char * OdlTempFname ()
 
short CheckBalance (char *text)
 

Variables

long odl_message_count = {0}
 
short odl_suppress_messages = {FALSE}
 
char ODLErrorMessage [120]
 

Function Documentation

◆ CheckBalance()

short CheckBalance ( char *  text)

Definition at line 5834 of file lablib3.c.

◆ ExpandIsRecursive()

unsigned short ExpandIsRecursive ( KEYWORD *  keyword,
char *  exp_fname 
)

Definition at line 441 of file lablib3.c.

◆ OdlAdjustObjDescLevel()

void OdlAdjustObjDescLevel ( OBJDESC *  object)

Definition at line 1329 of file lablib3.c.

◆ OdlCopyKwd()

KEYWORD* OdlCopyKwd ( KEYWORD *  keyword)

Definition at line 1880 of file lablib3.c.

◆ OdlCopyObjDesc()

OBJDESC* OdlCopyObjDesc ( OBJDESC *  object)

Definition at line 956 of file lablib3.c.

◆ OdlCutKwd()

KEYWORD* OdlCutKwd ( KEYWORD *  keyword)

Definition at line 1634 of file lablib3.c.

◆ OdlCutObjDesc()

OBJDESC* OdlCutObjDesc ( OBJDESC *  object)

Definition at line 702 of file lablib3.c.

◆ OdlDataType()

unsigned short OdlDataType ( char *  text)

Definition at line 5373 of file lablib3.c.

◆ OdlExpandLabelFile()

OBJDESC* OdlExpandLabelFile ( OBJDESC *  object,
char *  message_fname,
MASK  expand,
unsigned short  suppress_messages 
)

Definition at line 280 of file lablib3.c.

◆ OdlFindKwd()

KEYWORD* OdlFindKwd ( OBJDESC *  start_object,
const char *  keyword_name,
char *  keyword_value,
unsigned long  keyword_position,
unsigned short  search_scope 
)

Definition at line 1452 of file lablib3.c.

◆ OdlFindObjDesc()

OBJDESC* OdlFindObjDesc ( OBJDESC *  start_object,
const char *  object_class,
const char *  keyword_name,
char *  keyword_value,
unsigned long  object_position,
unsigned short  search_scope 
)

Definition at line 536 of file lablib3.c.

◆ OdlFirstWord()

char* OdlFirstWord ( char *  text)

Definition at line 5076 of file lablib3.c.

◆ OdlFormatMessage()

char* OdlFormatMessage ( char *  text)

Definition at line 3207 of file lablib3.c.

◆ OdlFreeAllKwds()

KEYWORD* OdlFreeAllKwds ( OBJDESC *  object)

Definition at line 2520 of file lablib3.c.

◆ OdlFreeKwd()

KEYWORD* OdlFreeKwd ( KEYWORD *  keyword)

Definition at line 2578 of file lablib3.c.

◆ OdlFreeTree()

OBJDESC* OdlFreeTree ( OBJDESC *  object)

Definition at line 2459 of file lablib3.c.

◆ OdlGetAllKwdValues()

TB_STRING_LIST* OdlGetAllKwdValues ( KEYWORD *  keyword)

Definition at line 2200 of file lablib3.c.

◆ OdlGetFileName()

char* OdlGetFileName ( KEYWORD *  keyword,
unsigned long *  start_location,
unsigned short *  start_location_type 
)

Definition at line 2784 of file lablib3.c.

◆ OdlGetFileSpec()

char* OdlGetFileSpec ( char *  fname)

Definition at line 2913 of file lablib3.c.

◆ OdlGetFirstKwd()

KEYWORD* OdlGetFirstKwd ( OBJDESC *  object)

Definition at line 2024 of file lablib3.c.

◆ OdlGetKwdName()

char* OdlGetKwdName ( KEYWORD *  keyword)

Definition at line 2401 of file lablib3.c.

◆ OdlGetKwdUnit()

char* OdlGetKwdUnit ( KEYWORD *  keyword)

Definition at line 2331 of file lablib3.c.

◆ OdlGetKwdValue()

char* OdlGetKwdValue ( KEYWORD *  keyword)

Definition at line 2131 of file lablib3.c.

◆ OdlGetKwdValueType()

unsigned short OdlGetKwdValueType ( KEYWORD *  keyword)

Definition at line 2280 of file lablib3.c.

◆ OdlGetLabelVersion()

char* OdlGetLabelVersion ( OBJDESC *  object)

Definition at line 1102 of file lablib3.c.

◆ OdlGetNextKwd()

KEYWORD* OdlGetNextKwd ( KEYWORD *  keyword)

Definition at line 2078 of file lablib3.c.

◆ OdlGetObjDescChildCount()

int OdlGetObjDescChildCount ( OBJDESC *  object)

Definition at line 1217 of file lablib3.c.

◆ OdlGetObjDescClassName()

char* OdlGetObjDescClassName ( OBJDESC *  object)

Definition at line 1167 of file lablib3.c.

◆ OdlGetObjDescLevel()

int OdlGetObjDescLevel ( OBJDESC *  object)

Definition at line 1271 of file lablib3.c.

◆ OdlGetObjDescParent()

OBJDESC* OdlGetObjDescParent ( OBJDESC *  object)

Definition at line 1386 of file lablib3.c.

◆ OdlLocateStart()

FILE* OdlLocateStart ( char *  filespec,
unsigned long  start_location,
unsigned short  start_location_type 
)

Definition at line 2972 of file lablib3.c.

◆ OdlNestingLevel()

short OdlNestingLevel ( char *  text,
long *  brace_nesting,
long *  paren_nesting 
)

Definition at line 4101 of file lablib3.c.

◆ OdlNewKwd()

KEYWORD* OdlNewKwd ( char *  keyword_name,
char *  value_text,
char *  pre_comment,
char *  line_comment,
char *  file_name,
long  line_number 
)

Definition at line 1940 of file lablib3.c.

◆ OdlNewObjDesc()

OBJDESC* OdlNewObjDesc ( const char *  object_class,
const char *  pre_comment,
const char *  line_comment,
const char *  post_comment,
const char *  end_comment,
const char *  file_name,
short  is_a_group,
long  line_number 
)

Definition at line 1019 of file lablib3.c.

◆ OdlNextKwd()

KEYWORD* OdlNextKwd ( KEYWORD *  start_keyword,
char *  keyword_name,
char *  keyword_value,
unsigned long  keyword_position,
unsigned short  search_scope 
)

Definition at line 1538 of file lablib3.c.

◆ OdlNextObjDesc()

OBJDESC* OdlNextObjDesc ( OBJDESC *  object,
unsigned long  root_level,
unsigned short *  search_scope 
)

Definition at line 619 of file lablib3.c.

◆ OdlNextWord()

char* OdlNextWord ( char *  text)

Definition at line 5126 of file lablib3.c.

◆ OdlOpenMessageFile()

FILE* OdlOpenMessageFile ( const char *  message_fname,
FILE *  message_fptr 
)

Definition at line 2648 of file lablib3.c.

◆ OdlParseFile()

OBJDESC* OdlParseFile ( char *  label_fname,
FILE *  label_fptr,
char *  message_fname,
FILE *  message_fptr,
unsigned short  suppress_messages,
unsigned short  suppress_metrics,
unsigned short  suppress_hierarchy,
unsigned short  ignore_missing_end 
)

Definition at line 3713 of file lablib3.c.

◆ OdlParseLabelFile()

OBJDESC* OdlParseLabelFile ( char *  filespec,
char *  message_fname,
MASK  expand,
unsigned short  suppress_messages 
)

Definition at line 124 of file lablib3.c.

◆ OdlParseLabelString()

OBJDESC* OdlParseLabelString ( char *  odl_string,
char *  message_fname,
MASK  expand,
unsigned short  suppress_messages 
)

Definition at line 196 of file lablib3.c.

◆ OdlPasteKwd()

KEYWORD* OdlPasteKwd ( KEYWORD *  keyword,
OBJDESC *  object 
)

Definition at line 1699 of file lablib3.c.

◆ OdlPasteKwdAfter()

KEYWORD* OdlPasteKwdAfter ( KEYWORD *  new_keyword,
KEYWORD *  old_keyword 
)

Definition at line 1820 of file lablib3.c.

◆ OdlPasteKwdBefore()

KEYWORD* OdlPasteKwdBefore ( KEYWORD *  new_keyword,
KEYWORD *  old_keyword 
)

Definition at line 1760 of file lablib3.c.

◆ OdlPasteObjDesc()

OBJDESC* OdlPasteObjDesc ( OBJDESC *  new_object,
OBJDESC *  parent_object 
)

Definition at line 766 of file lablib3.c.

◆ OdlPasteObjDescAfter()

OBJDESC* OdlPasteObjDescAfter ( OBJDESC *  new_object,
OBJDESC *  old_object 
)

Definition at line 893 of file lablib3.c.

◆ OdlPasteObjDescBefore()

OBJDESC* OdlPasteObjDescBefore ( OBJDESC *  new_object,
OBJDESC *  old_object 
)

Definition at line 830 of file lablib3.c.

◆ OdlPrintHierarchy()

void OdlPrintHierarchy ( OBJDESC *  object,
char *  message_fname,
FILE *  message_fptr 
)

Definition at line 3363 of file lablib3.c.

◆ OdlPrintKeywords()

void OdlPrintKeywords ( OBJDESC *  object,
char *  message_fname,
FILE *  message_fptr 
)

Definition at line 3595 of file lablib3.c.

◆ OdlPrintLabel()

void OdlPrintLabel ( OBJDESC *  object,
char *  message_fname,
FILE *  message_fptr,
unsigned long  root_level 
)

Definition at line 3463 of file lablib3.c.

◆ OdlPrintLine()

short OdlPrintLine ( const char *  message_fname,
FILE *  message_fptr,
const char *  text 
)

Definition at line 3163 of file lablib3.c.

◆ OdlPrintMessage()

short OdlPrintMessage ( const char *  message_fname,
FILE *  message_fptr,
long  line_number,
const char *  text 
)

Definition at line 3074 of file lablib3.c.

◆ OdlTempFname()

char* OdlTempFname ( )

Definition at line 5787 of file lablib3.c.

◆ OdlTraverseTree()

OBJDESC* OdlTraverseTree ( OBJDESC *  curr_object,
unsigned long  root_level 
)

Definition at line 4998 of file lablib3.c.

◆ OdlTypeString()

char* OdlTypeString ( unsigned short  type,
char *  type_string 
)

Definition at line 5715 of file lablib3.c.

◆ OdlValidBraces()

short OdlValidBraces ( char *  text,
long  brace_nesting,
long  paren_nesting,
char *  message_fname,
FILE *  message_fptr,
long  line_number 
)

Definition at line 4146 of file lablib3.c.

◆ OdlValidElement()

short OdlValidElement ( char *  text,
char *  message_fname,
FILE *  message_fptr,
long  line_number,
long  element_number 
)

Definition at line 4241 of file lablib3.c.

◆ OdlValidEndObjDesc()

short OdlValidEndObjDesc ( OBJDESC *  curr_object,
char *  equals,
char *  right_part,
char *  message_fname,
FILE *  message_fptr,
long  line_number,
unsigned short  group_type 
)

Definition at line 4447 of file lablib3.c.

◆ OdlValidIdentifier()

short OdlValidIdentifier ( const char *  id_name,
const char *  id_type,
const char *  message_fname,
FILE *  message_fptr,
long  line_number 
)

Definition at line 4524 of file lablib3.c.

◆ OdlValidKwd()

short OdlValidKwd ( OBJDESC *  curr_object,
char *  left_part,
char *  equals,
char *  right_part,
char *  message_fname,
FILE *  message_fptr,
long  line_number 
)

Definition at line 4609 of file lablib3.c.

◆ OdlValidObjDesc()

short OdlValidObjDesc ( OBJDESC *  curr_object,
char *  equals,
char *  right_part,
char *  message_fname,
FILE *  message_fptr,
long  line_number 
)

Definition at line 4723 of file lablib3.c.

◆ OdlValidValueList()

short OdlValidValueList ( char *  text,
char *  message_fname,
FILE *  message_fptr,
long  line_number 
)

Definition at line 4763 of file lablib3.c.

◆ OdlValueEnd()

char* OdlValueEnd ( char *  text)

Definition at line 5221 of file lablib3.c.

◆ OdlValueRowEnd()

char* OdlValueRowEnd ( char *  text)

Definition at line 5320 of file lablib3.c.

◆ OdlValueRowStart()

char* OdlValueRowStart ( char *  text)

Definition at line 5274 of file lablib3.c.

◆ OdlValueStart()

char* OdlValueStart ( char *  text)

Definition at line 5174 of file lablib3.c.

◆ OdlWildCardCompare()

unsigned short OdlWildCardCompare ( const char *  wildcard_text,
const char *  plain_text 
)

Definition at line 4844 of file lablib3.c.

Variable Documentation

◆ odl_message_count

long odl_message_count = {0}

Definition at line 33 of file lablib3.c.

◆ odl_suppress_messages

short odl_suppress_messages = {FALSE}

Definition at line 34 of file lablib3.c.

◆ ODLErrorMessage

char ODLErrorMessage[120]

Definition at line 3061 of file lablib3.c.