opatIO-cpp 0.3.0a
Open Parametrized Array Table
Loading...
Searching...
No Matches
opatIO.cpp File Reference
#include "opatIO.h"
#include "indexVector.h"
#include <fstream>
#include <iostream>
#include <ostream>
#include <stdexcept>
#include <algorithm>
#include <unordered_map>
#include <cstdint>
#include <memory>
#include <cstring>
#include <ranges>
#include "picosha2.h"

Namespaces

namespace  opat
 

Functions

bool opat::is_big_endian ()
 Determines if the system is big-endian.
 
bool opat::hasMagic (const std::string &filename)
 Checks if a file has the correct magic number for an OPAT file.
 
OPAT opat::readOPAT (const std::string &filename)
 Reads an OPAT file and returns its contents as an OPAT structure.
 
Header opat::readHeader (std::ifstream &file)
 Reads the header of an OPAT file.
 
CardCatalogEntry opat::readCardCatalogEntry (std::ifstream &file, uint64_t offset, uint16_t numIndex, uint8_t hashPrecision)
 Reads a CardCatalogEntry from the file.
 
CardCatalog opat::readCardCatalog (std::ifstream &file, const Header &header)
 Reads the CardCatalog from the file.
 
std::unordered_map< FloatIndexVector, DataCardopat::readDataCards (std::ifstream &file, const Header &header, const CardCatalog &cardCatalog)
 Reads all DataCards from the file.
 
DataCard opat::readDataCard (std::ifstream &file, const CardCatalogEntry &entry)
 Reads a single DataCard from the file.
 
CardHeader opat::readDataCardHeader (std::ifstream &file, const CardCatalogEntry &entry)
 Reads the header of a DataCard from the file.
 
TableIndex opat::readTableIndex (std::ifstream &file, const CardCatalogEntry &entry, const CardHeader &header)
 Reads the TableIndex from a DataCard.
 
OPATTable opat::readOPATTable (std::ifstream &file, const CardCatalogEntry &cardEntry, const TableIndexEntry &tableEntry)
 Reads an OPATTable from the file.
 
std::ostream & opat::operator<< (std::ostream &os, const Header &header)
 
std::ostream & opat::operator<< (std::ostream &os, const CardHeader &header)
 
std::ostream & opat::operator<< (std::ostream &os, const CardCatalogEntry &entry)
 
std::ostream & opat::operator<< (std::ostream &os, const CardCatalog &catalog)
 
std::ostream & opat::operator<< (std::ostream &os, const TableIndexEntry &entry)
 
std::ostream & opat::operator<< (std::ostream &os, const TableIndex &index)
 
std::ostream & opat::operator<< (std::ostream &os, const OPATTable &table)
 
std::ostream & opat::operator<< (std::ostream &os, const DataCard &card)
 
std::ostream & opat::operator<< (std::ostream &os, const OPAT &opat)
 
std::ostream & opat::operator<< (std::ostream &os, const Slice &slice)
 
std::ostream & opat::operator<< (std::ostream &os, const Bounds &bounds)