WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
WXP::Product Struct Reference

This struct holds data for a specific product to be saved by the data ingestor. More...

#include "../include/Product.h"

Public Types

enum  Action {
  DEFAULT , WRITE , APPEND , PIPE ,
  FILE , RUN , NONE
}

Public Member Functions

 Product ()
int init ()
int print ()

Public Attributes

char pattern [40]
char act_str [10]
int action
char file_tmpl [250]
char hfile_tmpl [100]
char command [250]
int raw
int binary
int selected
int unique
int pan
int offset
int pos
File file
File hfile

Detailed Description

This struct holds data for a specific product to be saved by the data ingestor.

Author
Dan Vietor

Member Enumeration Documentation

◆ Action

Output action

Enumerator
DEFAULT 

Default action

WRITE 

Writes data to file

APPEND 

Appends data to file

PIPE 

Pipes product to program

FILE 

Output to file

RUN 

Runs a program when data received

NONE 

No output

Constructor & Destructor Documentation

◆ Product()

Product::Product ( )

Constructor

References init().

Member Function Documentation

◆ init()

int Product::init ( )

Initializes the class

References act_str, action, binary, command, offset, pan, pattern, pos, raw, selected, and unique.

Referenced by Product().

◆ print()

int Product::print ( )

Prints object data

References act_str, action, binary, file_tmpl, offset, pan, pattern, pos, raw, and selected.

Member Data Documentation

◆ act_str

char WXP::Product::act_str[10]

Action string from bulletin file

Referenced by init(), and print().

◆ action

int WXP::Product::action

Action to perform to data

Referenced by init(), and print().

◆ binary

int WXP::Product::binary

Specifies whether product contains binary data

Referenced by init(), and print().

◆ command

char WXP::Product::command[250]

Command/file used with action

Referenced by init().

◆ file

File WXP::Product::file

Output data file

◆ file_tmpl

char WXP::Product::file_tmpl[250]

Template used for file action

Referenced by print().

◆ hfile

File WXP::Product::hfile

Header file

◆ hfile_tmpl

char WXP::Product::hfile_tmpl[100]

Template used for header file action

◆ offset

int WXP::Product::offset

Time offset in seconds

Referenced by init(), and print().

◆ pan

int WXP::Product::pan

Specifies whether to send PAN message

Referenced by init(), and print().

◆ pattern

char WXP::Product::pattern[40]

Product number or WMO header

Referenced by init(), and print().

◆ pos

int WXP::Product::pos

Current position in file

Referenced by init(), and print().

◆ raw

int WXP::Product::raw

Specifies whether to save raw data

Referenced by init(), and print().

◆ selected

int WXP::Product::selected

Specifies whether selected

Referenced by init(), and print().

◆ unique

int WXP::Product::unique

Specifies single output

Referenced by init().


The documentation for this struct was generated from the following files: