refactor(EosIO): renamed EosIO -> EOSio
This commit is contained in:
37
src/eos/private/EOSio.cpp
Normal file
37
src/eos/private/EOSio.cpp
Normal 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user