|
QSDK 1.1 Documentation |
#include <Q/gamedev.h>
Inheritance diagram for Q::MessageType:

Public Types | |
| typedef Com::Ptr< MessageType > | PTR |
Public Member Functions | |
| virtual Text | name () const=0 |
| virtual unsigned int | category () const=0 |
| virtual Utils::Result | setCategory (unsigned int)=0 |
| bool | equals (MessageType *) const |
Static Public Member Functions | |
| PTR | create (unsigned int category=0) |
| PTR | create (const char *) |
Static Public Attributes | |
| Com::UUID | IID |
| Com::UUID | CLSID |
A MessageType uniquely defines a message type. Those types may be automatically created from strings using the MessageManager and there is at most one message type per string. Types may be grouped by category so that MessagePeer objects can filter messages by type of categories.
|
|
A COM pointer to an object of this class |
|
|
Return the category. The category is a user-defined value used for filtering. If a peer is connected to another peer with filtering (see MessageManager::add(MessagePeer*, MessagePeer*, unsigned int)), only incoming messages with a message type whose category matches the filter bit mask of the receiver are accepted. Categories and filters allows the user to lighten up the message broacasting overload. Read the messaging tutorial for further details. Samples messagingt and messaging2t illustrate filtering. |
|
|
Returns a MessageType representing the specified name |
|
|
Create a message type.
|
|
|
Equality. The method tests if the pointer to this MessageType and the specified MessageType pointer are equal. This method is legacy and the user is advised to use pointer equality == directly.
|
|
|
Return the name associated with the type if it exists |
|
|
Set the category. The category is a user-defined value used for filtering. If a peer is connected to another peer with filtering (see MessageManager::add(MessagePeer*, MessagePeer*, unsigned int)), only incoming messages with a message type whose category matches the filter bit mask of the receiver are accepted. Categories and filters allows the user to lighten up the message broacasting overload. Read the messaging tutorial for further details. Samples messagingt and messaging2t illustrate filtering. |
|
|
COM CLSID fb396621-7f44-4cbb-b4be-4633d4ca7611 |
|
|
COM IID 5ebe3824-b7e5-4d3f-86a5-1d1b05803e75 Reimplemented from Com::Unknown. |
|
|
|
Qube Software Limited © 2000-2004
|
|