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 
11 class RUDIMENTS_DLLSPEC protocolentry {
12  public:
13 
15  protocolentry();
16 
19  protocolentry(const protocolentry &p);
20 
23  protocolentry &operator=(const protocolentry &p);
24 
26  ~protocolentry();
27 
30  bool initialize(const char *protocolname);
31 
34  bool initialize(int32_t number);
35 
37  const char *getName() const;
38 
41  const char * const *getAliasList() const;
42 
44  int32_t getNumber() const;
45 
51  static int32_t getNumber(const char *protocolname);
52 
61  static char *getName(int32_t number);
62 
65  static bool needsMutex();
66 
70  static void setMutex(threadmutex *mtx);
71 
72  #include <rudiments/private/protocolentry.h>
73 };
74 
75 #endif
Definition: threadmutex.h:11
Definition: protocolentry.h:11