MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
hostNameAddress.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2008 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: hostNameAddress.h,v $ $Revision: 1.5 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef hostNameAddress_H_
10 #define hostNameAddress_H_
11 
14 
15 
16 #include <rtiUtil.h>
17 #include <vlutil/vlInetAddr.h>
18 
19 
20 
24 {
25 public:
26 
28  DtHostNameAddress(const MAKRti::DtString& hostName, const MAKRti::DtInetAddr& addr, bool skipLookup = false);
29 
31  DtHostNameAddress(const MAKRti::DtString& address);
32 
35 
36  virtual ~DtHostNameAddress();
37 
40  virtual bool operator<(const DtHostNameAddress& other) const;
41 
44  virtual bool operator==(const DtHostNameAddress& other) const;
45 
48  virtual bool operator!=(const DtHostNameAddress& other) const;
49 
51  virtual DtHostNameAddress& operator=(const DtHostNameAddress& other);
52 
54  virtual const MAKRti::DtInetAddr& ip() const;
55 
57  virtual void setIp(const MAKRti::DtInetAddr& newIp);
58 
60  virtual const MAKRti::DtString& hostName() const;
61 
64  virtual void setHostName(const MAKRti::DtString& newHostName, bool skipLookup = false);
65 
67  virtual const MAKRti::DtString& compareHostName() const;
68 
70  virtual bool isAnyAddress() const;
71 
73  virtual bool isLocal() const;
74 
75 
76 protected:
77 
79  virtual MAKRti::DtInetAddr setHostFromString(const MAKRti::DtString& newAddr);
80 
82  virtual void setStatus();
83 
86  virtual MAKRti::DtInetAddr dottedStringToAddress( const MAKRti::DtString& address,
87  MAKRti::DtInetUtils::DtInetAddrFamily family);
88 
89 protected:
90 
92  MAKRti::DtString myHostName;
93 
95  MAKRti::DtString myCaseInsensitiveHostname;
96 
98  MAKRti::DtInetAddr myHostIp;
99 
101  bool myIsLocal;
102 
103 private:
104  // Default constructor not implemented.
106 
107 
108 };
109 
110 
111 
112 #endif

Document ID: Generated on Mon Jul 9 10:30:41 EDT 2018 from SVN revision 190224
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)