Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

/home/pauldt/projects/IDEA/IDEA-ALL/IDEA-DEV/Core/Agent/Includes/MessageData.hh

Go to the documentation of this file.
00001 // -*- Mode: c++ -*-
00002 //     File: $Source: /home/cvs/ISG-Repository/IDEA-DEV/Core/Agent/Includes/MessageData.hh,v $
00003 //      Tag: $Name: DR_01_11_06 $
00004 //      CVS: $Id: MessageData.hh,v 1.4 2005/12/30 22:05:32 rijsman Exp $
00005 //     Info: $CVSROOT/IDEA-DEV/COPYRIGHT
00006 #ifndef _HEADER_MESSAGE_DATA_HEADER_
00007 #define _HEADER_MESSAGE_DATA_HEADER_
00008 
00009 #include "ProtoType.hh"
00010 #include "Message.hh"
00011 
00012 namespace IDEA
00013 { 
00023   class MessageData:
00024     public Prototype
00025   {
00026   public:
00030     const Message::Type& getType() const
00031     {
00032       return m_Type;
00033     }
00037     int getIdentifier() const
00038     {
00039       return m_Identifier;
00040     }
00044     int getParent() const
00045     {
00046       return m_Parent;
00047     }
00052     const IntSet& getSubMessages() const
00053     {
00054       return m_SubMessages;
00055     }
00056   protected:
00060     static int getNextUniqueIdentifier();
00064     MessageData( const Message::Type& type, int identifier, const IntSet& subMessages = IntSet(), int parent = -1 ):
00065       m_Type( type ),
00066       m_Identifier( identifier ),
00067       m_SubMessages( subMessages ),
00068       m_Parent( parent )
00069     {
00070     }
00071   private:
00075     static int s_UniqueIdentifierCounter;
00076 
00080     MessageData();
00084     MessageData(const MessageData &);
00088     MessageData& operator=(const MessageData &);
00089 
00090     Message::Type  m_Type;
00091     int m_Identifier;
00092     IntSet m_SubMessages;
00093     int m_Parent;
00094   };
00095 }
00096 
00097 #endif // _HEADER_MESSAGE_DATA_HEADER_

Contact information
© IDEA
Generated on Fri Feb 3 17:09:40 2006 for IDEA.