MAK RTIspy API Documentation for HLA Evolved
assistantInfo.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2008 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: assistantInfo.h,v $ $Revision: 1.11 $ $State: Exp $
00007 *********************************************************************/
00008 
00009 #ifndef assistantInfo_H_
00010 #define assistantInfo_H_
00011 
00014 
00015 #include <rtiUtil.h>
00016 #include "hostNameAddress.h"
00017 
00018 class DtAssistantInfo;
00019 typedef std::set< DtAssistantInfo > DtAssistantInfoSet;
00020 
00021 
00023 class DT_DLL_ASSISTANT DtAssistantInfo
00024 {
00025 public:
00026 
00028 
00029    DtAssistantInfo();
00030    DtAssistantInfo( const MAKRti::DtString& host, const MAKRti::DtInetAddr& addr, 
00031       const MAKRti::DtInetAddr& interfaceAddr, int id );
00032    DtAssistantInfo( const DtHostNameAddress& host, 
00033       const MAKRti::DtInetAddr& interfaceAddr, int id );
00035 
00037    ~DtAssistantInfo();
00038 
00040    bool operator<(const DtAssistantInfo& other) const;
00041 
00043    bool operator==(const DtAssistantInfo& other) const;
00044 
00046    bool operator!=(const DtAssistantInfo& other) const;
00047 
00049    DtHostNameAddress host() const;
00050 
00052    void setHost( const DtHostNameAddress& host );
00053 
00055    const MAKRti::DtString& hostName() const;
00056 
00058    void setHostName( const MAKRti::DtString& name );
00059 
00061    const MAKRti::DtInetAddr& address() const;
00062 
00064    void setAddress( const MAKRti::DtInetAddr& addr );
00065 
00067    const MAKRti::DtInetAddr& networkInterfaceAddress() const;
00068 
00070    void setNetworkInterfaceAddress( const MAKRti::DtInetAddr& interfaceAddr );
00071 
00074    int id() const;
00075 
00078    void setId( int id );
00079 
00082    DtAssistantInfoSet::const_iterator findMatchingHostInfo( const DtAssistantInfoSet& set );
00083 
00085    bool isThisAssistant() const;
00086 
00088    static void setThisAssistantId( int id );
00089 
00090 protected:
00091 
00093    DtHostNameAddress myHost;
00094 
00096    MAKRti::DtInetAddr myNetworkInterfaceAddr;
00097 
00099    int myId;
00100 
00102    static int theIdOfThisAssistant;
00103 };
00104 
00105 #endif // assistantInfo_H_
00106 

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)