summaryrefslogtreecommitdiff
path: root/src/name.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:47 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:47 +0200
commitd4c9f10efe815af146438cafb694d16da0e5650a (patch)
tree93956195c448768b2d58892cb672bee36a6a6463 /src/name.h
parentee315a27b72dc967a8a90f132725b7c8e4fd9fba (diff)
tagging ychat-0.7.0ychat-0.7.0
Diffstat (limited to 'src/name.h')
-rwxr-xr-xsrc/name.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/name.h b/src/name.h
index 1e79c0e..d5a67da 100755
--- a/src/name.h
+++ b/src/name.h
@@ -1,3 +1,4 @@
+// class name declaration.
#include "incl.h"
#ifndef NAME_H
@@ -8,6 +9,7 @@ using namespace std;
class name
{
protected:
+ // private members:
string s_name; // object's name.
pthread_mutex_t mut_s_name;
@@ -16,9 +18,11 @@ public:
virtual string get_lowercase_name ( );
virtual void set_name ( string s_name );
- name();
+ // public methods:
+ name( );
name( string s_name ); // a standard constructor.
- ~name();
+ ~name( );
+
};
#endif