37 enum Status { Migrated, NotMigrated, NotKnown, NumStatuses };
83 static constexpr std::array<char const*, static_cast<size_t>(NumStatuses)> kSTATUS_STR_MAP = {
The status of a migrator, it provides the helper functions to convert the status to string and vice v...
Definition MigratiorStatus.hpp:32
std::string toString() const
Convert the status to string.
Definition MigratorStatus.cpp:40
static MigratorStatus fromString(std::string const &statusStr)
Convert the string to status.
Definition MigratorStatus.cpp:46
Status
The status of a migrator.
Definition MigratiorStatus.hpp:37
MigratorStatus(Status status)
Construct a new Migrator Status object with the given status.
Definition MigratiorStatus.hpp:44
bool operator==(MigratorStatus const &other) const
Compare the status with another MigratorStatus.
Definition MigratorStatus.cpp:28