Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

RoutingInfo.h

00001 /*
00002  * Copyright 2003 Michael A. Marsh, Cornell University. All rights reserved.
00003  * This software is released under the modified BSD license.
00004  * See the file LICENSE in the top-level directory for details.
00005  */
00006 //
00007 // $Id: RoutingInfo.h,v 1.3 2004/05/19 15:56:58 mmarsh Exp $
00008 //
00009 // $Log: RoutingInfo.h,v $
00010 // Revision 1.3  2004/05/19 15:56:58  mmarsh
00011 // *** empty log message ***
00012 //
00013 // Revision 1.2  2003/11/04 22:31:51  mmarsh
00014 // *** empty log message ***
00015 //
00016 //
00017 
00018 #ifndef __CODEX_SERVER_ROUTINGINFO_H__
00019 #define __CODEX_SERVER_ROUTINGINFO_H__
00020 
00021 namespace CODEX_Server
00022 {
00027    class RoutingInfo
00028    {
00029       public :
00035          RoutingInfo( unsigned char* server, unsigned char* seqNum ) :
00036             m_server( server ),
00037             m_seqNum( seqNum )
00038          {}
00039 
00041          virtual ~RoutingInfo()
00042          {
00043             if ( NULL != m_server ) delete [] m_server;
00044             if ( NULL != m_seqNum ) delete [] m_seqNum;
00045          }
00046 
00048          const unsigned char* server() const { return m_server; }
00050          const unsigned char* seqNum() const { return m_seqNum; }
00051 
00052       private :
00053          unsigned char*  m_server;
00054          unsigned char*  m_seqNum;
00055    };
00056 }
00057 
00058 #endif /* __CODEX_SERVER_ROUTINGINFO_H__ */

Generated on Wed Jun 2 16:32:55 2004 for COrnell Data EXchange (CODEX) by doxygen1.2.18