refactor(EosIO): renamed EosIO -> EOSio

This commit is contained in:
2025-05-11 14:58:00 -04:00
parent 44571a8111
commit 95d344a79c
7 changed files with 27 additions and 144 deletions

View File

@@ -1,23 +1,24 @@
#include <string>
#include <utility>
#include "eosIO.h"
#include "EOSio.h"
#include "helm.h"
#include "debug.h"
EosIO::EosIO(const std::string filename) : m_filename(filename) {
EOSio::EOSio(std::string filename) : m_filename(std::move(filename)) {
load();
}
std::string EosIO::getFormat() const {
std::string EOSio::getFormat() const {
return m_format;
}
EOSTable& EosIO::getTable() {
EOSTable& EOSio::getTable() {
return m_table;
}
void EosIO::load() {
void EOSio::load() {
// Load the EOS table from the file
// For now, just set the format to HELM
@@ -27,10 +28,10 @@ void EosIO::load() {
}
}
void EosIO::loadHelm() {
void EOSio::loadHelm() {
// Load the HELM table from the file
auto helmTabptr = helmholtz::read_helm_table(m_filename);
m_table = std::move(helmTabptr);
auto helmTabPtr = helmholtz::read_helm_table(m_filename);
m_table = std::move(helmTabPtr);
m_loaded = true;
}