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

# dePacketList.hpp

Go to the documentation of this file.

    00001 ///////////////////////////////////////////////////////////////////////////////
    00002 /// @file dePacketList.hpp
    00003 ///
    00004 /// @brief
    00005 ///
    00006 /// @author trajar
    00007 ///
    00008 /// This file is the intellectual property of Novus Delta, LLC.. Usage of the
    00009 /// contents of this file is subject to the Destiny3D Member License which
    00010 /// can be found at http://www.destiny3d.com.  Any other usage is prohibited.
    00011 ///
    00012 /// This file is distributed "AS IS" without warranty of any kind.  Novus
    00013 /// Delta, LLC. does not guarantee the fitness of the contents of this file
    00014 /// for any particular purpose.
    00015 ///
    00016 /// Copyright (C) 2001-2003 Novus Delta, LLC. All Rights Reserved.
    00017 ///
    00018 /// <hr>
    00019 ///                                 Change History
    00020 /// <hr>
    00021 ///
    00022 /// @date Jun 2002
    00023 /// @author trajar
    00024 /// @remarks Creation
    00025 ///
    00026 ///////////////////////////////////////////////////////////////////////////////
    00027
    00028 #ifndef     _DEPACKETLIST_HPP
    00029 #define     _DEPACKETLIST_HPP
    00030
    00031 #ifndef     _DENET_HPP
    00032  #include   "deNet.hpp"
    00033 #endif
    00034
    00035 #ifndef     _DEPACKET_HPP
    00036  #include   "dePacket.hpp"
    00037 #endif
    00038
    00039 #include    <SET>
    00040 typedef     std::set< dePacket >    aPackets;
    00041
    00042 class DENET_API dePacketList
    00043 {
    00044 public:
    00045     dePacketList(void);
    00046     virtual ~dePacketList(void);
    00047
    00048     void        AddPacket( dePacket * pPacket );
    00049     int         GetNumPakets(void);
    00050     bool        IsCompleteList(void);
    00051     dePacket *  ConsolidatePackets(void);
    00052     int         GetID(void)                         const { return m_ID; }
    00053
    00054 private:
    00055
    00056     WORD        m_ID;
    00057     aPackets    m_aPackets;
    00058
    00059 public:
    00060
    00061     friend bool operator !=     ( const dePacketList& l, const dePacketList& r ) {  return ( l.m_ID != r.m_ID );  }
    00062     friend bool operator ==		( const dePacketList& l, const dePacketList& r ) { return ( l.m_ID == r.m_ID );  }
    00063     friend bool operator >      ( const dePacketList& l, const dePacketList& r ) {  return l.m_ID > r.m_ID;  }
    00064     friend bool operator <      ( const dePacketList& l, const dePacketList& r ) {  return l.m_ID < r.m_ID;  }
    00065 };
    00066
    00067 #endif