OmniSciDB  2e3a973ef4
ConnectionInfo Struct Reference

#include <ConnectionInfo.h>

+ Collaboration diagram for ConnectionInfo:

Public Member Functions

std::string toString () const
 

Public Attributes

std::string address
 
ClientProtocol protocol
 

Detailed Description

Definition at line 25 of file ConnectionInfo.h.

Member Function Documentation

◆ toString()

std::string ConnectionInfo::toString ( ) const
inline

Definition at line 29 of file ConnectionInfo.h.

References HTTP, Other, TCP, and UNREACHABLE.

29  {
30  switch (protocol) {
32  return "tcp:" + address;
34  return "http:" + address;
36  return "Other";
37  }
38  UNREACHABLE();
39  return "";
40  }
#define UNREACHABLE()
Definition: Logger.h:241
std::string address
ClientProtocol protocol

Member Data Documentation

◆ address

std::string ConnectionInfo::address

Definition at line 26 of file ConnectionInfo.h.

◆ protocol

ClientProtocol ConnectionInfo::protocol

Definition at line 27 of file ConnectionInfo.h.


The documentation for this struct was generated from the following file: