| CatapultServer
    v0.5.0.1 (Elephant)
    | 
 
 
 
Go to the documentation of this file.
   24 namespace catapult { 
namespace model {
 
   27 #define NETWORK_IDENTIFIER_LIST \ 
   32     ENUM_VALUE(Mijin, 0x60) \ 
   35     ENUM_VALUE(Mijin_Test, 0x90) \ 
   38     ENUM_VALUE(Public, 0x68) \ 
   41     ENUM_VALUE(Public_Test, 0x98) 
   43 #define ENUM_VALUE(LABEL, VALUE) LABEL = VALUE, 
  
 
constexpr NetworkInfo(NetworkIdentifier identifier, const Key &publicKey, const catapult::GenerationHash &generationHash)
Definition: NetworkInfo.h:62
Information about a network.
Definition: NetworkInfo.h:54
bool TryParseValue(const std::string &networkName, NetworkIdentifier &networkIdentifier)
Tries to parse networkName into a network identifier (networkIdentifier).
Definition: NetworkInfo.cpp:44
bool TryParseEnumValue(const std::array< std::pair< const char *, T >, N > &stringToValueMapping, const std::string &str, T &parsedValue)
Tries to parse str into an enum value (parsedValue) given a mapping of strings to values (stringToVal...
Definition: ConfigurationValueParsers.h:104
catapult::GenerationHash GenerationHash
Nemesis generation hash.
Definition: NetworkInfo.h:76
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
std::ostream & operator<<(std::ostream &out, const EmbeddedTransaction &transaction)
Insertion operator for outputting transaction to out.
Definition: EmbeddedTransaction.cpp:28
Definition: AddressExtractionExtension.cpp:28
constexpr NetworkInfo()
Creates a default, uninitialized network info.
Definition: NetworkInfo.h:57
bool TryParseValue(const std::string &str, LogLevel &parsedValue)
Tries to parse str into a log level (parsedValue).
Definition: ConfigurationValueParsers.cpp:60
Key PublicKey
Nemesis public key.
Definition: NetworkInfo.h:73
NetworkIdentifier Identifier
Network identifier.
Definition: NetworkInfo.h:70