Chatsync  bbffde5c0c672a526bdc83637acf66dc20a80fbf
channeling::ChannelFactory Class Reference

#include <channel.hpp>

Static Public Member Functions

static Channelcreate (const std::string &classname, Hub::Hub *const hub, const std::string &config)
 
static void registerClass (const std::string &classname, ChannelCreator *creator)
 
static uint16_t nextId ()
 

Static Private Member Functions

static std::map< std::string, ChannelCreator * > & get_table ()
 

Static Private Attributes

static std::atomic_int id {ATOMIC_FLAG_INIT}
 

Member Function Documentation

§ create()

Channel * channeling::ChannelFactory::create ( const std::string &  classname,
Hub::Hub *const  hub,
const std::string &  config 
)
static

§ get_table()

std::map< std::string, ChannelCreator * > & channeling::ChannelFactory::get_table ( )
staticprivate

§ nextId()

static uint16_t channeling::ChannelFactory::nextId ( )
inlinestatic

§ registerClass()

void channeling::ChannelFactory::registerClass ( const std::string &  classname,
ChannelCreator creator 
)
static

Field Documentation

§ id

std::atomic_int channeling::ChannelFactory::id {ATOMIC_FLAG_INIT}
staticprivate

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