CatapultServer  v0.5.0.1 (Elephant)
NetworkInfo.h File Reference
Include dependency graph for NetworkInfo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  catapult::model::NetworkInfo
 Information about a network. More...
 

Namespaces

 catapult
 
 catapult::model
 

Macros

#define NETWORK_IDENTIFIER_LIST
 
#define ENUM_VALUE(LABEL, VALUE)   LABEL = VALUE,
 

Enumerations

enum  catapult::model::NetworkIdentifier : uint8_t { catapult::model::NetworkIdentifier::NETWORK_IDENTIFIER_LIST }
 Possible network identifiers. More...
 

Functions

std::ostream & catapult::model::operator<< (std::ostream &out, NetworkIdentifier value)
 Insertion operator for outputting value to out. More...
 
bool catapult::model::TryParseValue (const std::string &networkName, NetworkIdentifier &networkIdentifier)
 Tries to parse networkName into a network identifier (networkIdentifier). More...
 

Macro Definition Documentation

◆ ENUM_VALUE

#define ENUM_VALUE (   LABEL,
  VALUE 
)    LABEL = VALUE,

◆ NETWORK_IDENTIFIER_LIST

#define NETWORK_IDENTIFIER_LIST
Value:
/* A default (zero) identifier that does not identify any known network. */ \
ENUM_VALUE(Zero, 0) \
\
/* Mijin network identifier. */ \
ENUM_VALUE(Mijin, 0x60) \
\
/* Mijin test network identifier. */ \
ENUM_VALUE(Mijin_Test, 0x90) \
\
/* Public main network identifier. */ \
ENUM_VALUE(Public, 0x68) \
\
/* Public test network identifier. */ \
ENUM_VALUE(Public_Test, 0x98)
Note
The lower 3 bits must be cleared because they are used for different purposes, e.g. resolvers.