current version
[opsoft_test.git] / gclib2 / modules / Core / String.h
blob558a9cefee1a97a2605774532068e73c6fce98cd
1 /*
2 * (c) Oleg Puchinin 2007,2008
3 * graycardinalster@gmail.com
5 */
7 #ifndef DEFINE_STRING_H
8 #define DEFINE_STRING_H
10 class String;
11 class String
13 public:
14 String ();
15 String (char * str);
16 String (const char * str);
17 ~String ();
19 String & operator + (char * str);
20 String & operator + (String & str);
21 String & operator = (char * str);
22 String & operator = (const char * str);
23 String & operator = (String & str);
25 inline operator char *() {
26 return m_buf;
28 String & operator << (char * str);
29 String & operator << (int num);
30 char * c_str ();
32 private:
33 char * m_buf;
36 #endif