Skip to content

C++ Notification System - CPPNotifications is a Cocoa like (Objective-C) notification system for C++ (POSIX and Windows).

Notifications You must be signed in to change notification settings

macmade/CPPNotifications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPPNotifications

Build Status Issues Status License Contact
Donate-Patreon Donate-Gratipay Donate-Paypal

About

C++ Notification System
CPPNotifications is a Cocoa like (Objective-C) notification system for C++ (POSIX and Windows).

Documentation

Example:

#include <iostream>
#include "NotificationCenter.h"

class Bar: public EOS::Observer
{
    public:
        
        void handleNotification( const EOS::Notification & );
};

void Bar::handleNotification( const EOS::Notification & notification )
{
    std::cout << "Received notification: " << notification.name() << std::endl;
}

int main( void )
{
    Bar b1;
    Bar b2;
    
    EOS::NotificationCenter::defaultCenter().addObserver( b1, "test" );
    EOS::NotificationCenter::defaultCenter().addObserver( b2, "test" );
    EOS::NotificationCenter::defaultCenter().postNotification( "test" );
    
    return 0;
}

License

CPPNotifications is released under the terms of the Boost Software License - Version 1.0.

Repository Infos

Owner:			Jean-David Gadina - XS-Labs
Web:			www.xs-labs.com
Blog:			www.noxeos.com
Twitter:		@macmade
GitHub:			github.com/macmade
LinkedIn:		ch.linkedin.com/in/macmade/
StackOverflow:	stackoverflow.com/users/182676/macmade

About

C++ Notification System - CPPNotifications is a Cocoa like (Objective-C) notification system for C++ (POSIX and Windows).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published