In file /home/eternity/Source/Common/MessageIDRepository/H/messageIDRepository.h:

class MessageIDRepository : public Debugable

Message Id repository

Inheritance:

MessageIDRepository < Debugable


Public Methods

Registerable* MessageIDRepository::GetRegistrator (ID messageID)
Reveal which object is waiting for this message
RegistratorRecord* MessageIDRepository::GetRegistratorRecord (ID messageID)
Reveal who is waiting for this message ID
MessageIDRepository::MessageIDRepository (LogFile * messageIDRepositoryLogFile)
Message ID repository
Err MessageIDRepository::Register (ID messageID, Registerable * registrator, string destination)
Register object registrator for reply to messageID

Public

methods
MessageIDRepository (LogFile * messageIDRepositoryLogFile)
Constructor
RegistratorRecord* GetRegistratorRecord (ID messageID)
Get who is registered
Registerable* GetRegistrator (ID messageID)
Get who is registered
Err Register (ID messageID, Registerable * registrator, string destination = "")
Register for Imessage ID

Protected

attributes

Inherited from Debugable:

Public Methods

string* Debugable::CreateString(char *firstStr, int firstInt, int secondInt)
Debugable::Debugable(LogFile * debugLogFile)
int Debugable::SetDebugOptions(int newLogOptions)
void Debugable::SetLogFile(LogFile *aLogFile)
void Debugable::WriteString(LogLevel debugLevel, char * format, ...)
Debugable::~Debugable()

Documentation

Message Id repository. Remembers the pairs (object or Six) and request ID so that reply can send reply to the correct requestor.
attributes

methods

MessageIDRepository(LogFile * messageIDRepositoryLogFile)
Constructor

RegistratorRecord* GetRegistratorRecord(ID messageID)
Get who is registered

Registerable* GetRegistrator(ID messageID)
Get who is registered

Err Register(ID messageID, Registerable * registrator, string destination = "")
Register for Imessage ID

Registerable* MessageIDRepository::GetRegistrator(ID messageID)
Reveal which object is waiting for this message. Returns pointer to object that is waiting for this reply. Deletes this object from its table.
Returns:
Pointer to registerable object that registered for this message. NULL if noone found.
Parameters:
messageID - ID of message we are inspecting.
Author:
Venca
See Also:
Registerable

RegistratorRecord* MessageIDRepository::GetRegistratorRecord(ID messageID)
Reveal who is waiting for this message ID. Returns pointer to structure containing object that is waiting for this reply or the name of Six willing to receive the message.

Deletes this structure from its table

Returns:
pointer to structure that contains pointer to Registerable object or name of Six.
Parameters:
messageID - ID of message we are deciding where to send
Author:
Venca
See Also:
Registerable, Majordomo

MessageIDRepository::MessageIDRepository(LogFile * messageIDRepositoryLogFile)
Message ID repository. Initializes its parent classes.
Parameters:
messageIDRepositoryLogFile - Log file to write to.
Author:
Venca
See Also:
Registerable

Err MessageIDRepository::Register(ID messageID, Registerable * registrator, string destination)
Register object registrator for reply to messageID. Remembers pointer to requesting object together with ID so that is able to call them when reply arrives.
Returns:
KO if someone is already registered for this ID.
Parameters:
messageID - ID of message registrator is waiting for reply to.
registrator - Object that wants to be notified when reply arrives.
destination - Six that wants to receive the reply.
Author:
Venca
See Also:
Registerable


This class has no child classes.
Author:
Venca
See Also:
Majordomo, RegistratorRecord

alphabetic index hierarchy of classes


generated by doc++