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_BINARY_INPUT_HANDLER_H
00020 #define RTC_BINARY_INPUT_HANDLER_H
00021
00022
00023 #include "rtc/rtcInputHandler.h"
00024
00025
00026 namespace rtc {
00027
00064 class BinaryInputHandler : public InputHandler {
00065 public:
00067 BinaryInputHandler();
00069 BinaryInputHandler(std::istream& is);
00071 BinaryInputHandler(const char* filename);
00073 virtual ~BinaryInputHandler();
00075 virtual bool binary() const;
00077 virtual bool readName(const std::string& name);
00079 virtual bool readSeparator();
00081
00084 virtual bool read(std::string& data);
00085 virtual bool read(double& data);
00086 virtual bool read(float& data);
00087 virtual bool read(int& data);
00088 virtual bool read(unsigned int& data);
00089 virtual bool read(char& data);
00090 virtual bool read(unsigned char& data);
00091 virtual bool read(bool& data);
00092 virtual bool read(long& data);
00093 virtual bool read(unsigned long& data);
00094 virtual bool read(short& data);
00095 virtual bool read(unsigned short& data);
00096 virtual bool read(char* data, long n);
00098 };
00099
00100
00101 }
00102
00103 #endif // RTC_BINARY_INPUT_HANDLER_H defined
00104
00105