rtcBinaryOutputHandler.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2009
00003  * Robert Bosch LLC
00004  * Research and Technology Center North America
00005  * Palo Alto, California
00006  *
00007  * All rights reserved.
00008  *
00009  *------------------------------------------------------------------------------
00010  * project ....: Autonomous Technologies
00011  * file .......: rtcOutputHandler.h
00012  * authors ....: Benjamin Pitzer
00013  * organization: Robert Bosch LLC
00014  * creation ...: 01/20/2009
00015  * modified ...: $Date: 2009-01-21 18:19:16 -0800 (Wed, 21 Jan 2009) $
00016  * changed by .: $Author: benjaminpitzer $
00017  * revision ...: $Revision: 14 $
00018  */
00019 #ifndef RTC_BINARY_OUTPUT_HANDLER_H
00020 #define RTC_BINARY_OUTPUT_HANDLER_H
00021 
00022 //== INCLUDES ==================================================================
00023 #include "rtc/rtcOutputHandler.h"
00024 
00025 //== NAMESPACES ================================================================
00026 namespace rtc {
00027 
00064 class BinaryOutputHandler : public OutputHandler {
00065 public:
00067   BinaryOutputHandler();
00069   BinaryOutputHandler(std::ostream& os);
00071   virtual ~BinaryOutputHandler();
00073   virtual bool binary() const;
00075   virtual bool writeName(const std::string& name);
00077   virtual bool writeSeparator();
00079   virtual bool writeEOL();
00081 
00084   virtual bool write(const std::string& data);
00085   virtual bool write(const double& data);
00086   virtual bool write(const float& data);
00087   virtual bool write(const int& data);
00088   virtual bool write(const unsigned int& data);
00089   virtual bool write(const char& data);
00090   virtual bool write(const unsigned char& data);
00091   virtual bool write(const bool& data);
00092   virtual bool write(const long& data);
00093   virtual bool write(const unsigned long& data);
00094   virtual bool write(const short& data);
00095   virtual bool write(const unsigned short& data);
00096   virtual bool write(const char* data, long n);
00098 };
00099 
00100 //==============================================================================
00101 } // namespace rtc
00102 //==============================================================================
00103 #endif // RTC_BINARY_OUTPUT_HANDLER_H defined
00104 //==============================================================================
00105 


rtc
Author(s): Benjamin Pitzer
autogenerated on Mon Oct 6 2014 10:07:34