hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_enum_to_string.hpp File Reference
#include <string>
#include <google/protobuf/generated_enum_reflection.h>
Include dependency graph for proto_enum_to_string.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IROHA_DEFINE_PROTO_ENUM_TO_STRING(EnumType)
 

Macro Definition Documentation

◆ IROHA_DEFINE_PROTO_ENUM_TO_STRING

#define IROHA_DEFINE_PROTO_ENUM_TO_STRING (   EnumType)
Value:
namespace iroha { \
namespace to_string { \
inline std::string toString(const EnumType &val) { \
const ::google::protobuf::EnumDescriptor *const descriptor = \
::google::protobuf::GetEnumDescriptor<EnumType>(); \
return ::google::protobuf::internal::NameOfEnum(descriptor, val); \
} \
} \
}
Definition: block_query.hpp:15
std::string toString(const ::iroha::utility_service::Status &val)
Definition: proto_status_tools.cpp:56

Copyright Soramitsu Co., Ltd. All Rights Reserved. SPDX-License-Identifier: Apache-2.0