hmbdc
simplify-high-performance-messaging-programming
Public Member Functions | List of all members
hmbdc::comm::Topic Struct Reference

topic as in the publish / subscribe communication paradigm More...

#include <Topic.hpp>

Inheritance diagram for hmbdc::comm::Topic:
hmbdc::text::TypedString< TOPIC, 64u >

Public Member Functions

 Topic ()
 construct an empty topic
 
 Topic (char const *t)
 ctor from a char* string More...
 
 Topic (std::string t)
 ctor from a std string More...
 
- Public Member Functions inherited from hmbdc::text::TypedString< TOPIC, 64u >
 TypedString (char const *s, size_t len=SIZE)
 
 TypedString (std::string const &s)
 
char const * c_str () const
 
bool operator== (ThisT const &other) const
 
bool operator!= (ThisT const &other) const
 
bool operator< (ThisT const &other) const
 
void clear ()
 
size_t size () const
 
size_t copyTo (char *to) const
 

Additional Inherited Members

- Public Types inherited from hmbdc::text::TypedString< TOPIC, 64u >
enum  
 
using rawType = char[SIZE]
 
- Static Public Member Functions inherited from hmbdc::text::TypedString< TOPIC, 64u >
static char const * typeName ()
 

Detailed Description

topic as in the publish / subscribe communication paradigm

recommended allowed letters are [a-z] [A-Z] [0-9] and / it has a length limit of 64 char

Examples:
chat.cpp, client-server-netmap.cpp, rmcast-cp.cpp, and server-cluster.cpp.

Constructor & Destructor Documentation

hmbdc::comm::Topic::Topic ( char const *  t)
inline

ctor from a char* string

truncated to be 64 char

Parameters
ttopic string limited to 64 char
hmbdc::comm::Topic::Topic ( std::string  t)
inline

ctor from a std string

truncated to be 64 char

Parameters
ttopic string limited to 64 char

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