Cleanup ACE_HAS_PTHREAD_SIGMASK_PROTOTYPE, all platforms support it so far as I can...
[ACE_TAO.git] / ACE / apps / drwho / Protocol_Record.cpp
blob45c3f7b00e25b3f580cd925a479ae9360a9225ce
1 #include "Options.h"
2 #include "Protocol_Record.h"
3 #include "ace/Log_Msg.h"
5 // Static initialization.
7 Drwho_Node Protocol_Record::drwho_node_;
9 Protocol_Record::~Protocol_Record ()
11 if (Options::get_opt (Options::DEBUGGING))
12 ACE_DEBUG ((LM_DEBUG,
13 "disposing Protocol_Record\n"));
15 for (Drwho_Node *np = this->get_drwho_list ();
16 np != 0; )
18 Drwho_Node *t = np;
19 np = np->next_;
20 delete t;
24 Protocol_Record::Protocol_Record ()
25 : key_name1_ (0),
26 key_name2_ (0),
27 drwho_list_ (0),
28 next_ (0),
29 is_active_ (0)
33 Protocol_Record::Protocol_Record (int)
34 : key_name1_ (0),
35 key_name2_ (0),
36 drwho_list_ (&Protocol_Record::drwho_node_),
37 next_ (0),
38 is_active_ (0)
42 Protocol_Record::Protocol_Record (const char *kn1,
43 Protocol_Record *next)
44 : key_name1_ (kn1),
45 key_name2_ (0),
46 drwho_list_ (0),
47 next_ (next),
48 is_active_ (0)
52 const char *
53 Protocol_Record::get_login ()
55 return this->key_name1_;
58 const char *
59 Protocol_Record::set_login (const char *str)
61 this->key_name1_ = str;
62 return str;
65 const char *
66 Protocol_Record::get_real ()
68 return this->key_name2_;
71 const char *
72 Protocol_Record::get_host ()
74 return this->key_name1_;
77 const char *
78 Protocol_Record::set_host (const char *str)
80 this->key_name1_ = str;
81 return str;
84 const char *
85 Protocol_Record::set_real (const char *str)
87 this->key_name2_ = str;
88 return str;
91 Drwho_Node *
92 Protocol_Record::get_drwho_list ()
94 return this->drwho_list_;