Skip to content

MCPGNZ/message-dispatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

message-dispatcher

C++ generic message dispatcher. Message receivers are determined by the type of the message sent.

supports binding

  • functions
  • methods
  • static methods
  • lambdas
  • const methods :<

note

  • type_info.h uses VS only __FUNCSIG__ makro
  • publisher-subscriber pattern only

example

void receive_value(int message)
{
    std::cout << "function received value_message: " << message << '\n';
}

int main() 
{ 
    pk::message_dispatcher::bind(receive_value);
    pk::message_dispatcher::signal(4);
    pk::message_dispatcher::unbind(receive_value);
}

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages