diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:45 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:45 +0200 |
| commit | d34015c5ba231b95de20e9fcd7a33c5b2b9a1006 (patch) | |
| tree | ceac33bd27e3b1158a0ac4e17f7fd7e5e6473fea /src/name.h | |
| parent | c507ce3198ea4d822832cc8740f0128df8873c02 (diff) | |
tagging ychat-0.5.3ychat-0.5.3
Diffstat (limited to 'src/name.h')
| -rwxr-xr-x | src/name.h | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -1,24 +1,30 @@ -#include "incl.h" +// class name declaration. #ifndef NAME_H #define NAME_H +#include "incl.h" + using namespace std; class name { protected: + // private members: string s_name; // object's name. - pthread_mutex_t mut_s_name; public: - virtual string get_name ( ); - virtual string get_lowercase_name ( ); + virtual string get_name ( ) const; virtual void set_name ( string s_name ); - name(); - name( string s_name ); // a standard constructor. - ~name(); + + // public methods: + explicit name( ) + { } + ; // a standard constructor. + explicit name( string s_name ); // a standard constructor. + ~name( ); + }; #endif |
