String.h 366 B

12345678910111213141516171819202122
  1. #ifndef STRING_H
  2. #define STRING_H
  3. #include "Types.h"
  4. class String {
  5. public:
  6. String();
  7. operator const char*() const;
  8. String& append(char c);
  9. String& append(const char* str);
  10. bool receiveFromSocket(int socket);
  11. uint getLength() const;
  12. private:
  13. static const uint LENGTH = 8192;
  14. uint length;
  15. char data[LENGTH];
  16. };
  17. #endif