|
HIPO
4.3.0
High Performance Output data format for experimental physics
|
Multi-file HIPO data access manager using integer handles. More...
#include <fusion.h>
Public Member Functions | |
| fusion () | |
| ~fusion () | |
| int | open (const char *filename) |
| Open a HIPO file and return its handle. More... | |
| int | open (const char *filename, int tag) |
| Open a HIPO file with a tag filter and return its handle. More... | |
| bool | next (int handle) |
| Advance to the next event in the given file. More... | |
| void | define (int fid, const char *bank) |
| Register a bank for reading in the given file. More... | |
| void | describe (int fid, const char *bank) |
| Print schema description for a bank in the given file. More... | |
| std::string | schema (int fid, const char *bank) |
| int | getSize (int fid, const char *bank) |
| void | getByteArray (int handle, const char *bank, int entry, int8_t *ptr, int length) |
| Copy a byte column into an array from the file identified by handle. More... | |
| void | getShortArray (int handle, const char *bank, int entry, int16_t *ptr, int length) |
| Copy a short column into an array from the file identified by handle. More... | |
| void | getIntArray (int handle, const char *bank, int entry, int32_t *ptr, int length) |
| Copy an integer column into an array from the file identified by handle. More... | |
| void | getFloatArray (int handle, const char *bank, int entry, float *ptr, int length) |
| Copy a float column into an array from the file identified by handle. More... | |
| int | getInt (int handle, const char *bank, const char *entry, int row) |
| int64_t | getLong (int handle, const char *bank, const char *entry, int row) |
| float | getFloat (int handle, const char *bank, const char *entry, int row) |
| double | getDouble (int handle, const char *bank, const char *entry, int row) |
| int | getType (int handle, const char *bank, const char *entry) |
| int64_t | getEntries (int handle) |
| hipo::bank & | getBank (int handle, const char *bank) |
Multi-file HIPO data access manager using integer handles.
Provides a C-friendly interface for opening multiple HIPO files, each identified by an integer handle. Banks can be defined and read across files using the handle.
| void hipo::fusion::define | ( | int | fid, |
| const char * | bank | ||
| ) |
Register a bank for reading in the given file.
Definition at line 106 of file fusion.cpp.
| void hipo::fusion::describe | ( | int | fid, |
| const char * | bank | ||
| ) |
Print schema description for a bank in the given file.
Definition at line 113 of file fusion.cpp.
|
inline |
|
inline |
| double hipo::fusion::getDouble | ( | int | handle, |
| const char * | bank, | ||
| const char * | entry, | ||
| int | row | ||
| ) |
Definition at line 139 of file fusion.cpp.
|
inline |
| float hipo::fusion::getFloat | ( | int | handle, |
| const char * | bank, | ||
| const char * | entry, | ||
| int | row | ||
| ) |
Definition at line 133 of file fusion.cpp.
|
inline |
| int hipo::fusion::getInt | ( | int | handle, |
| const char * | bank, | ||
| const char * | entry, | ||
| int | row | ||
| ) |
Definition at line 125 of file fusion.cpp.
|
inline |
| int64_t hipo::fusion::getLong | ( | int | handle, |
| const char * | bank, | ||
| const char * | entry, | ||
| int | row | ||
| ) |
Definition at line 129 of file fusion.cpp.
|
inline |
| int hipo::fusion::getSize | ( | int | fid, |
| const char * | bank | ||
| ) |
Definition at line 117 of file fusion.cpp.
| int hipo::fusion::getType | ( | int | handle, |
| const char * | bank, | ||
| const char * | entry | ||
| ) |
Definition at line 143 of file fusion.cpp.
| bool hipo::fusion::next | ( | int | handle | ) |
Advance to the next event in the given file.
| handle | File handle returned by open() |
Definition at line 121 of file fusion.cpp.
| int hipo::fusion::open | ( | const char * | filename | ) |
Open a HIPO file and return its handle.
| filename | Path to the HIPO file |
Definition at line 94 of file fusion.cpp.
| int hipo::fusion::open | ( | const char * | filename, |
| int | tag | ||
| ) |
Open a HIPO file with a tag filter and return its handle.
Definition at line 100 of file fusion.cpp.
| std::string hipo::fusion::schema | ( | int | fid, |
| const char * | bank | ||
| ) |
Definition at line 110 of file fusion.cpp.