rtcASCIIInputHandler.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 .......: rtcASCIIInputHandler.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_ASCII_INPUT_HANDLER_H
00020 #define RTC_ASCII_INPUT_HANDLER_H
00021 
00022 //== INCLUDES ==================================================================
00023 #include "rtc/rtcInputHandler.h"
00024 
00025 //== NAMESPACES ================================================================
00026 namespace rtc {
00027 
00054 class ASCIIInputHandler : public InputHandler {
00055 public:
00057   ASCIIInputHandler();
00059   ASCIIInputHandler(std::istream& is);
00061   ASCIIInputHandler(const char* filename);
00063   virtual ~ASCIIInputHandler();
00065   virtual bool binary() const;
00067   virtual bool readName(const std::string& name);
00069   virtual bool readSeparator();
00071 
00074   virtual bool read(std::string& data);
00075   virtual bool read(double& data);
00076   virtual bool read(float& data);
00077   virtual bool read(int& data);
00078   virtual bool read(unsigned int& data);
00079   virtual bool read(char& data);
00080   virtual bool read(unsigned char& data);
00081   virtual bool read(bool& data);
00082   virtual bool read(long& data);
00083   virtual bool read(unsigned long& data);
00084   virtual bool read(short& data);
00085   virtual bool read(unsigned short& data);
00086   virtual bool read(char* data, long n);
00088 };
00089 
00090 //==============================================================================
00091 } // namespace rtc
00092 //==============================================================================
00093 #endif // RTC_ASCII_INPUT_HANDLER_H defined
00094 //==============================================================================
00095 


rtc
Author(s): Benjamin Pitzer
autogenerated on Thu Jan 2 2014 11:04:53