WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
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.

Referenced by WXP::WmoIngest::action().

Member Data Documentation

◆ act_str

char WXP::Product::act_str[10]

Action string from bulletin file

Referenced by init(), print(), and WXP::WmoIngest::readProdFile().

◆ action

int WXP::Product::action

Action to perform to data

Referenced by init(), print(), WXP::WmoIngest::readProdFile(), and WXP::WmoIngest::sendPAN().

◆ binary

int WXP::Product::binary

Specifies whether product contains binary data

Referenced by init(), print(), and WXP::WmoIngest::readProdFile().

◆ command

char WXP::Product::command[250]

Command/file used with action

Referenced by init().

◆ file

File WXP::Product::file

◆ file_tmpl

char WXP::Product::file_tmpl[250]

Template used for file action

Referenced by print(), and WXP::WmoIngest::readProdFile().

◆ hfile

File WXP::Product::hfile

◆ hfile_tmpl

char WXP::Product::hfile_tmpl[100]

Template used for header file action

Referenced by WXP::WmoIngest::readProdFile().

◆ offset

int WXP::Product::offset

Time offset in seconds

Referenced by init(), print(), and WXP::WmoIngest::readProdFile().

◆ pan

int WXP::Product::pan

Specifies whether to send PAN message

Referenced by init(), print(), WXP::WmoIngest::readProdFile(), and WXP::WmoIngest::sendPAN().

◆ 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(), print(), WXP::WmoIngest::saveHeader(), and WXP::WmoIngest::sendPAN().

◆ raw

int WXP::Product::raw

Specifies whether to save raw data

Referenced by init(), print(), and WXP::WmoIngest::readProdFile().

◆ selected

int WXP::Product::selected

Specifies whether selected

Referenced by init(), WXP::WmoIngest::isSelected(), and print().

◆ unique

int WXP::Product::unique

Specifies single output

Referenced by init(), and WXP::WmoIngest::readProdFile().


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