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

37
src/eos/private/EOSio.cpp Normal file
View File

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