HIPO  4.3.0
High Performance Output data format for experimental physics
wrapper.cpp File Reference

C/Fortran language bindings for HIPO4 reader and data access APIs. More...

#include <iostream>
#include "reader.h"
#include "event.h"
#include "fusion.h"

Go to the source code of this file.

Functions

void hipo_file_open_ (const char *filename, int length)
 
void hipo_file_open (const char *filename)
 
int hipo_file_next_ (int *fstatus)
 
void hipo_read_bank_ (const char *bankname, int *bankRows, int banknameLength)
 
void get_bank_rows_ (int *group, int *bankRows)
 
void hipo_read_float_ (const char *group, const char *item, int *nread, float *buffer, int *maxRows, int length_group, int length_item)
 
void hipo_read_double_ (const char *group, const char *item, int *nread, double *buffer, int *maxRows, int length_group, int length_item)
 
void hipo_read_int_ (const char *group, const char *item, int *nread, int *buffer, int *maxRows, int length_group, int length_item)
 
void hipo_read_long_ (const char *group, const char *item, int *nread, int64_t *buffer, int *maxRows, int length_group, int length_item)
 
int fusion_open (const char *filename)
 
int fusion_open_with_tag (const char *filename, int tag)
 
int fusion_next (int handle)
 
int fusion_schema_length (int handle, const char *bank)
 
void fusion_schema_string (int handle, const char *bank, char *format)
 
void fusion_define (int handle, const char *bank)
 
void fusion_describe (int handle, const char *bank)
 
int fusion_bankSize (int handle, const char *bank)
 
int fusion_get_int (int handle, const char *bank, const char *entry, int row)
 
void fusion_get_byte_array (int handle, const char *bank, int entry, int8_t *ptr, int rows)
 
void fusion_get_short_array (int handle, const char *bank, int entry, int16_t *ptr, int rows)
 
void fusion_get_int_array (int handle, const char *bank, int entry, int32_t *ptr, int rows)
 
void fusion_get_float_array (int handle, const char *bank, int entry, float *ptr, int rows)
 
int64_t fusion_get_long (int handle, const char *bank, const char *entry, int row)
 
float fusion_get_float (int handle, const char *bank, const char *entry, int row)
 
float fusion_get_double (int handle, const char *bank, const char *entry, int row)
 
int fusion_entry_type (int handle, const char *bank, const char *entry)
 
float * fusion_create_array (int size)
 
int64_t fusion_get_entries (int handle)
 
void fusion_show (int handle, const char *bank)
 

Variables

hipo::reader hipo_FORT_Reader
 
hipo::event hipo_FORT_Event
 
hipo::dictionary hipo_FORT_Dictionary
 
std::map< std::string, hipo::bank * > eventStore
 
hipo::fusion hFusion
 

Detailed Description

C/Fortran language bindings for HIPO4 reader and data access APIs.

Definition in file wrapper.cpp.

Function Documentation

◆ fusion_bankSize()

int fusion_bankSize ( int  handle,
const char *  bank 
)

Definition at line 261 of file wrapper.cpp.

◆ fusion_create_array()

float* fusion_create_array ( int  size)

Definition at line 302 of file wrapper.cpp.

◆ fusion_define()

void fusion_define ( int  handle,
const char *  bank 
)

Definition at line 259 of file wrapper.cpp.

◆ fusion_describe()

void fusion_describe ( int  handle,
const char *  bank 
)

Definition at line 260 of file wrapper.cpp.

◆ fusion_entry_type()

int fusion_entry_type ( int  handle,
const char *  bank,
const char *  entry 
)

Definition at line 298 of file wrapper.cpp.

◆ fusion_get_byte_array()

void fusion_get_byte_array ( int  handle,
const char *  bank,
int  entry,
int8_t *  ptr,
int  rows 
)

Definition at line 267 of file wrapper.cpp.

◆ fusion_get_double()

float fusion_get_double ( int  handle,
const char *  bank,
const char *  entry,
int  row 
)

Definition at line 292 of file wrapper.cpp.

◆ fusion_get_entries()

int64_t fusion_get_entries ( int  handle)

Definition at line 308 of file wrapper.cpp.

◆ fusion_get_float()

float fusion_get_float ( int  handle,
const char *  bank,
const char *  entry,
int  row 
)

Definition at line 286 of file wrapper.cpp.

◆ fusion_get_float_array()

void fusion_get_float_array ( int  handle,
const char *  bank,
int  entry,
float *  ptr,
int  rows 
)

Definition at line 279 of file wrapper.cpp.

◆ fusion_get_int()

int fusion_get_int ( int  handle,
const char *  bank,
const char *  entry,
int  row 
)

Definition at line 263 of file wrapper.cpp.

◆ fusion_get_int_array()

void fusion_get_int_array ( int  handle,
const char *  bank,
int  entry,
int32_t *  ptr,
int  rows 
)

Definition at line 275 of file wrapper.cpp.

◆ fusion_get_long()

int64_t fusion_get_long ( int  handle,
const char *  bank,
const char *  entry,
int  row 
)

Definition at line 283 of file wrapper.cpp.

◆ fusion_get_short_array()

void fusion_get_short_array ( int  handle,
const char *  bank,
int  entry,
int16_t *  ptr,
int  rows 
)

Definition at line 271 of file wrapper.cpp.

◆ fusion_next()

int fusion_next ( int  handle)

Definition at line 247 of file wrapper.cpp.

◆ fusion_open()

int fusion_open ( const char *  filename)

Definition at line 239 of file wrapper.cpp.

◆ fusion_open_with_tag()

int fusion_open_with_tag ( const char *  filename,
int  tag 
)

Definition at line 243 of file wrapper.cpp.

◆ fusion_schema_length()

int fusion_schema_length ( int  handle,
const char *  bank 
)

Definition at line 249 of file wrapper.cpp.

◆ fusion_schema_string()

void fusion_schema_string ( int  handle,
const char *  bank,
char *  format 
)

Definition at line 254 of file wrapper.cpp.

◆ fusion_show()

void fusion_show ( int  handle,
const char *  bank 
)

Definition at line 312 of file wrapper.cpp.

◆ get_bank_rows_()

void get_bank_rows_ ( int *  group,
int *  bankRows 
)

Definition at line 95 of file wrapper.cpp.

◆ hipo_file_next_()

int hipo_file_next_ ( int *  fstatus)

Definition at line 36 of file wrapper.cpp.

◆ hipo_file_open()

void hipo_file_open ( const char *  filename)

Definition at line 31 of file wrapper.cpp.

◆ hipo_file_open_()

void hipo_file_open_ ( const char *  filename,
int  length 
)

Definition at line 21 of file wrapper.cpp.

◆ hipo_read_bank_()

void hipo_read_bank_ ( const char *  bankname,
int *  bankRows,
int  banknameLength 
)

Definition at line 52 of file wrapper.cpp.

◆ hipo_read_double_()

void hipo_read_double_ ( const char *  group,
const char *  item,
int *  nread,
double *  buffer,
int *  maxRows,
int  length_group,
int  length_item 
)

Definition at line 143 of file wrapper.cpp.

◆ hipo_read_float_()

void hipo_read_float_ ( const char *  group,
const char *  item,
int *  nread,
float *  buffer,
int *  maxRows,
int  length_group,
int  length_item 
)

Definition at line 101 of file wrapper.cpp.

◆ hipo_read_int_()

void hipo_read_int_ ( const char *  group,
const char *  item,
int *  nread,
int *  buffer,
int *  maxRows,
int  length_group,
int  length_item 
)

Definition at line 175 of file wrapper.cpp.

◆ hipo_read_long_()

void hipo_read_long_ ( const char *  group,
const char *  item,
int *  nread,
int64_t *  buffer,
int *  maxRows,
int  length_group,
int  length_item 
)

Definition at line 205 of file wrapper.cpp.

Variable Documentation

◆ eventStore

std::map<std::string, hipo::bank *> eventStore

Definition at line 14 of file wrapper.cpp.

◆ hFusion

hipo::fusion hFusion

Definition at line 17 of file wrapper.cpp.

◆ hipo_FORT_Dictionary

hipo::dictionary hipo_FORT_Dictionary

Definition at line 12 of file wrapper.cpp.

◆ hipo_FORT_Event

hipo::event hipo_FORT_Event

Definition at line 11 of file wrapper.cpp.

◆ hipo_FORT_Reader

hipo::reader hipo_FORT_Reader

Definition at line 10 of file wrapper.cpp.