hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_status_tools.hpp
Go to the documentation of this file.
1 
6 #ifndef UTIL_PROTO_STATUS_TOOLS_HPP
7 #define UTIL_PROTO_STATUS_TOOLS_HPP
8 
9 #include <memory>
10 #include <optional>
11 #include <string>
12 
14 #include "util/status.hpp"
15 #include "utility_endpoint.pb.h"
16 
17 namespace iroha {
18  namespace utility_service {
19  proto::Status_StatusEnum makeProtoStatus(Status status);
20 
21  Status makeStatus(const proto::Status_StatusEnum &status);
22  } // namespace utility_service
23 
24  namespace to_string {
26  } // namespace to_string
27 } // namespace iroha
28 
30  ::iroha::utility_service::proto::Status::StatusEnum)
31 
32 #endif /* UTIL_PROTO_STATUS_TOOLS_HPP */
#define IROHA_DEFINE_PROTO_ENUM_TO_STRING(EnumType)
Definition: proto_enum_to_string.hpp:13
Definition: block_query.hpp:15
std::shared_ptr< iroha::utility_service::UtilityService > utility_service
Definition: irohad.cpp:121
proto::Status_StatusEnum makeProtoStatus(Status status)
Definition: proto_status_tools.cpp:42
std::string toString(const ::iroha::utility_service::Status &val)
Definition: proto_status_tools.cpp:56
Status makeStatus(const proto::Status_StatusEnum &status)
Definition: proto_status_tools.cpp:47
Status
Definition: status.hpp:12