summaryrefslogtreecommitdiff
path: root/src/name.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/name.h')
-rwxr-xr-xsrc/name.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/name.h b/src/name.h
index 0a62c1f..0293e2b 100755
--- a/src/name.h
+++ b/src/name.h
@@ -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