PeerOS
The Peer Object Subscriber set of classes help us set up an Observer (aka Publisher-Subscriber) design pattern
Welcome to the new Ogre Wiki!
If you haven't done so already, be sure to visit the Wiki Portal to read about how the wiki works. Especially the Ogre Wiki Overview page.
If you haven't done so already, be sure to visit the Wiki Portal to read about how the wiki works. Especially the Ogre Wiki Overview page.
Created by --Occulis 22:29, 30 April 2006 (CDT)
Table of contents
Purpose
The Peer Object Subscriber set of classes help us set up an Observer (aka Publisher-Subscriber) design pattern.
This solves the problem of complex message handling in a large C++ application with many small pieces.
Classes
The three classes making up the PeerOS library are:
- PeerMessage: Describes ("is a") a message.
- PeerPublisher: pushes a message down to the subscribers.
- PeerReader: A subscriber. Will only receive messages from a Publisher to which it has subscribed.
Naming Conventions
- A class derived from PeerPublisher to publish Foo messages should be named CMPublish_Foo. The "CMPublish" stands for "Class for Message Publishing."
- A class derived from PeerMessage to represent a Foo message should be named CM_Foo.
- A class derived from PeerReader to read (aka handle) a Foo message should be named CMRead_Foo.
Contributors to this page: jacmoe
and
OgreWikiBot
.
Page last modified on Sunday 03 of January, 2010 00:39:33 GMT by jacmoe
.
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.
As an exception, any source code contributed within the content is released into the Public Domain.

