Rudiments
protocolentry.h
1 // Copyright (c) 2002 David Muse
2 // See the COPYING file for more information.
3 
4 #ifndef RUDIMENTS_PROTOCOLENTRY_H
5 #define RUDIMENTS_PROTOCOLENTRY_H
6 
7 #include <rudiments/private/protocolentryincludes.h>
8 
9 class protocolentryprivate;
10 
13 class RUDIMENTS_DLLSPEC protocolentry {
14  public:
15 
17  protocolentry();
18 
21  protocolentry(const protocolentry &p);
22 
25  protocolentry &operator=(const protocolentry &p);
26 
28  ~protocolentry();
29 
32  bool initialize(const char *protocolname);
33 
36  bool initialize(int32_t number);
37 
39  const char *getName() const;
40 
43  const char * const *getAliasList() const;
44 
46  int32_t getNumber() const;
47 
53  static int32_t getNumber(const char *protocolname);
54 
63  static char *getName(int32_t number);
64 
67  static bool needsMutex();
68 
72  static void setMutex(threadmutex *mtx);
73 
74  #include <rudiments/private/protocolentry.h>
75 };
76 
77 #endif
Definition: threadmutex.h:13
Definition: protocolentry.h:13