Skip to content

Commit

Permalink
Node information functions (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpelliccioni committed May 31, 2023
1 parent 8ae56b7 commit 31208b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
12 changes: 1 addition & 11 deletions include/kth/node/executor/executor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,10 @@

namespace kth::node {


static constexpr
std::string_view microarchitecture();
std::string_view march_names();

static constexpr
std::string_view node_version();

static constexpr
std::string_view currency_symbol();

static constexpr
std::string_view currency();

static constexpr
std::string_view db_type();

class executor {
Expand Down
12 changes: 0 additions & 12 deletions src/executor/executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,10 @@ static constexpr int directory_exists = 0;
static constexpr int directory_not_found = 2;
static auto const mode = std::ofstream::out | std::ofstream::app;


static constexpr
std::string_view microarchitecture() {
return KTH_MICROARCHITECTURE_STR;
}

static constexpr
std::string_view march_names() {
#if defined(KTH_MARCH_NAMES_FULL_STR)
return KTH_MARCH_NAMES_FULL_STR;
Expand All @@ -68,27 +65,18 @@ std::string_view march_names() {
#endif
}

static constexpr
std::string_view node_version() {
return KTH_NODE_VERSION;
}

static constexpr
std::string_view currency_symbol() {
return KTH_CURRENCY_SYMBOL_STR;
}

static constexpr
std::string_view currency() {
return KTH_CURRENCY_STR;
}

static constexpr
std::string_view db_type() {
return KTH_DB_TYPE;
}


std::promise<kth::code> executor::stopping_; //NOLINT

executor::executor(kth::node::configuration const& config, bool stdout_enabled /*= true*/)
Expand Down

0 comments on commit 31208b5

Please sign in to comment.