stereocam  0.0-0.dev0.dirty.el6
 All Data Structures Files Functions Variables Typedefs Enumerations Groups
STEREOCAM Ingest

Data Structures

struct  UserData
 UserData structure passed to all user defined hook functions. More...

Macros

#define MAX_LINE_LENGTH   8096
 The maximum length of a line in a raw data file.
#define GET_DS_VAR(dataset, varname, errval, var)
 Convenience macro for getting a variable in a dataset.

Functions

void * stereocam_init_process (void)
 Initialize the STEREOCAM process.
void stereocam_finish_process (void *user_data)
 Finish the STEREOCAM process.
int stereocam_process_file (void *user_data, const char *input_dir, const char *file_name)
 Process a raw STEREOCAM data file.
int main (int argc, char *argv[])

Detailed Description


Macro Definition Documentation

#define GET_DS_VAR (   dataset,
  varname,
  errval,
  var 
)
Value:
if (!(var = dsproc_get_var(dataset, varname))) { \
DSPROC_ERROR( DSPROC_EREQVAR, \
"Required variable '%s' not found in output dataset: %s\n", \
varname, dataset->name); \
return(errval); \
}

Convenience macro for getting a variable in a dataset.

Definition at line 31 of file stereocam_ingest.h.


Function Documentation

void stereocam_finish_process ( void *  user_data)

Finish the STEREOCAM process.

This function frees all memory used by the UserData structure, and does any final cleanup needed by the process.

Parameters:
user_datavoid pointer to the UserData structure

Definition at line 248 of file stereocam_ingest.c.

void* stereocam_init_process ( void  )

Initialize the STEREOCAM process.

This function will:

  • create the UserData structure
  • add the raw data file patterns
  • get the IDs of the input and output datastreams

If an error occurs in this function it will be appended to the log and error mail messages, and the process status will be set appropriately.

Return values:
datavoid pointer to the UserData structure
NULLif an error occurred

Definition at line 34 of file stereocam_ingest.c.

int stereocam_process_file ( void *  user_data,
const char *  input_dir,
const char *  file_name 
)

Process a raw STEREOCAM data file.

If an error occurs in this function it will be appended to the log and error mail messages, and the process status will be set appropriately.

Parameters:
user_datavoid pointer to the UserData structure
input_dirpath to the file
file_namefile name
Return values:
1if successful
0if the current file should be skipped
-1if a fatal error occurred

Definition at line 302 of file stereocam_ingest.c.