https://github.com/macmade/cppnotifications
C++ Notification System - CPPNotifications is a Cocoa like (Objective-C) notification system for C++ (POSIX and Windows).
https://github.com/macmade/cppnotifications
Last synced: 12 months ago
JSON representation
C++ Notification System - CPPNotifications is a Cocoa like (Objective-C) notification system for C++ (POSIX and Windows).
- Host: GitHub
- URL: https://github.com/macmade/cppnotifications
- Owner: macmade
- Created: 2012-01-11T21:01:55.000Z (over 14 years ago)
- Default Branch: main
- Last Pushed: 2021-08-02T23:01:02.000Z (almost 5 years ago)
- Last Synced: 2025-06-15T05:35:58.541Z (about 1 year ago)
- Language: C++
- Homepage:
- Size: 80.1 KB
- Stars: 10
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
CPPNotifications
================
[](https://travis-ci.org/macmade/CPPNotifications)
[](https://github.com/macmade/CPPNotifications/issues)


[](https://twitter.com/macmade)
[](https://patreon.com/macmade)
[](https://www.gratipay.com/macmade)
[](https://paypal.me/xslabs)
About
-----
**C++ Notification System**
CPPNotifications is a Cocoa like (Objective-C) notification system for C++ (POSIX and Windows).
Documentation
-------------
### Example:
#include
#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