[7297] Fixed profession spells sorting in trainer spell list at client.
[getmangos.git] / dep / ACE_wrappers / ace / DEV_Addr.h
blob49ec5023a7c7b5c9fcd99d2c4ff3a42eb6fb6447
1 // -*- C++ -*-
3 //==========================================================================
4 /**
5 * @file DEV_Addr.h
7 * $Id: DEV_Addr.h 80826 2008-03-04 14:51:23Z wotte $
9 * @author Gerhard Lenzer and Douglas C. Schmidt
11 //==========================================================================
13 #ifndef ACE_DEV_ADDR_H
14 #define ACE_DEV_ADDR_H
16 #include /**/ "ace/pre.h"
18 #include "ace/Addr.h"
20 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 # pragma once
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 #include "ace/os_include/os_dirent.h"
26 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
28 /**
29 * @class ACE_DEV_Addr
31 * @brief Defines device address family address format.
33 class ACE_Export ACE_DEV_Addr : public ACE_Addr
35 public:
36 // = Initialization methods.
37 /// Default constructor.
38 ACE_DEV_Addr (void);
40 /// Copy constructor.
41 ACE_DEV_Addr (const ACE_DEV_Addr &sa);
43 /// Acts like a copy constructor.
44 int set (const ACE_DEV_Addr &sa);
46 /// Create a ACE_DEV_Addr from a device name.
47 explicit ACE_DEV_Addr (const ACE_TCHAR *devname);
49 /// Create a ACE_Addr from a ACE_DEV pathname.
50 void set (const ACE_TCHAR *devname);
52 /// Assignment operator.
53 ACE_DEV_Addr &operator= (const ACE_DEV_Addr &);
55 /// Return a pointer to the address.
56 virtual void *get_addr (void) const;
58 /// Transform the current address into string format.
59 virtual int addr_to_string (ACE_TCHAR *addr, size_t) const;
61 /// Compare two addresses for equality.
62 bool operator == (const ACE_DEV_Addr &SAP) const;
64 /// Compare two addresses for inequality.
65 bool operator != (const ACE_DEV_Addr &SAP) const;
67 /// Return the path name used for the rendezvous point.
68 const ACE_TCHAR *get_path_name (void) const;
70 /// Dump the state of an object.
71 void dump (void) const;
73 /// Declare the dynamic allocation hooks.
74 ACE_ALLOC_HOOK_DECLARE;
76 private:
77 enum { DEVNAME_LENGTH = MAXPATHLEN + 1 };
78 /// Name of the device.
79 ACE_TCHAR devname_[DEVNAME_LENGTH];
82 ACE_END_VERSIONED_NAMESPACE_DECL
84 #if defined (__ACE_INLINE__)
85 #include "ace/DEV_Addr.inl"
86 #endif /* __ACE_INLINE__ */
88 #include /**/ "ace/post.h"
90 #endif /* ACE_DEV_ADDR_H */