Dripline-Cpp  v2.10.11
Dripline Implementation in C++
Public Types | Public Member Functions | Static Public Attributes | Private Member Functions | List of all members
routing_key Class Reference

Parses routing keys and stores the tokenized information. More...

#include <specifier.hh>

Inheritance diagram for routing_key:
Inheritance graph

Public Types

typedef std::deque< std::string > container_type
 

Public Member Functions

 routing_key (const std::string &a_rk="")
 
 routing_key (const routing_key &)=default
 
 routing_key (routing_key &&)=default
 
virtual ~routing_key ()=default
 
routing_keyoperator= (const routing_key &)=default
 
routing_keyoperator= (routing_key &&)=default
 
void parse (const std::string &a_rk)
 Parses a routing key. More...
 
std::string to_string () const
 Converts the routing-key tokens into a single string. More...
 

Static Public Attributes

static const char f_node_separator = '.'
 

Private Member Functions

void add_next (const std::string &a_addr)
 

Detailed Description

Parses routing keys and stores the tokenized information.

Author
N.S. Oblath

Definition at line 27 of file specifier.hh.

Member Typedef Documentation

◆ container_type

typedef std::deque< std::string > container_type

Definition at line 30 of file specifier.hh.

Constructor & Destructor Documentation

◆ routing_key() [1/3]

routing_key ( const std::string &  a_rk = "")

Definition at line 19 of file specifier.cc.

◆ routing_key() [2/3]

routing_key ( const routing_key )
default

◆ routing_key() [3/3]

routing_key ( routing_key &&  )
default

◆ ~routing_key()

virtual ~routing_key ( )
virtualdefault

Member Function Documentation

◆ add_next()

void add_next ( const std::string &  a_addr)
private

Definition at line 44 of file specifier.cc.

◆ operator=() [1/2]

routing_key& operator= ( const routing_key )
default

◆ operator=() [2/2]

routing_key& operator= ( routing_key &&  )
default

◆ parse()

void parse ( const std::string &  a_rk)

Parses a routing key.

Definition at line 25 of file specifier.cc.

◆ to_string()

std::string to_string ( ) const

Converts the routing-key tokens into a single string.

Definition at line 33 of file specifier.cc.

Member Data Documentation

◆ f_node_separator

const char f_node_separator = '.'
static

Definition at line 50 of file specifier.hh.


The documentation for this class was generated from the following files: