MAK RTIspy API Documentation for HLA 1516
 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);
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);
65 
67  virtual void setHostFromString(const MAKRti::DtString& newAddr);
68 
70  virtual const MAKRti::DtString& compareHostName() const;
71 
73  virtual bool isValid() const;
74 
76  virtual bool isLocal() const;
77 
78 
79 protected:
80 
82  virtual void setIsValid();
83 
86  virtual MAKRti::DtInetAddr dottedStringToAddress( const MAKRti::DtString& address );
87 
88 protected:
89 
91  MAKRti::DtString myHostName;
92 
94  MAKRti::DtString myCaseInsensitiveHostname;
95 
97  MAKRti::DtInetAddr myHostIp;
98 
100  bool myIsLocal;
101 
103  bool myIsValid;
104 
105 private:
106  // Default constructor not implemented.
108 
109 
110 };
111 
112 
113 
114 #endif

Document ID: Generated on Wed Mar 11 20:26:49 EDT 2015 from SVN revision 150939
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)