Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef RTC_ASCII_OUTPUT_HANDLER_H
00020 #define RTC_ASCII_OUTPUT_HANDLER_H
00021
00022
00023 #include "rtc/rtcOutputHandler.h"
00024
00025
00026 namespace rtc {
00027
00054 class ASCIIOutputHandler : public OutputHandler {
00055 public:
00057 ASCIIOutputHandler();
00059 ASCIIOutputHandler(std::ostream& os);
00061 virtual ~ASCIIOutputHandler();
00063 virtual bool binary() const;
00065 virtual bool writeName(const std::string& name);
00067 virtual bool writeSeparator();
00069 virtual bool writeEOL();
00071
00074 virtual bool write(const std::string& data);
00075 virtual bool write(const double& data);
00076 virtual bool write(const float& data);
00077 virtual bool write(const int& data);
00078 virtual bool write(const unsigned int& data);
00079 virtual bool write(const char& data);
00080 virtual bool write(const unsigned char& data);
00081 virtual bool write(const bool& data);
00082 virtual bool write(const long& data);
00083 virtual bool write(const unsigned long& data);
00084 virtual bool write(const short& data);
00085 virtual bool write(const unsigned short& data);
00086 virtual bool write(const char* data, long n);
00088
00089 protected:
00090 static const char SEPARATOR=' ';
00091 };
00092
00093
00094 }
00095
00096 #endif // RTC_ASCII_OUTPUT_HANDLER_H defined
00097
00098