![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2004 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: extFileInputStream.h,v $ $Revision: 1.7 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00012 #ifndef DtExtFileInputStream_H_ 00013 #define DtExtFileInputStream_H_ 00014 00015 #include <vlutil/vlMachineTypes.h> 00016 #include <mtl/mtlstream.h> 00017 00018 #include <string> 00019 00025 #include "extMtl/extMtlDefines.h" 00026 00027 class DT_DLL_extMtl DtExtFileInputStream : 00028 public DtlFileInputStream 00029 { 00030 public: 00031 DtExtFileInputStream(FILE *); 00032 virtual ~DtExtFileInputStream(void); 00033 00034 int fgetc_past_whitespace(void); 00035 00036 int flush_until(char terminator); 00037 00040 virtual void clearLastWhitespace(); 00041 00044 virtual const std::string& lastWhitespace() const; 00045 00048 virtual const std::string& initialWhitespace() const; 00049 00050 protected: 00051 00052 bool myInitialWhitespaceIsSet; 00053 std::string myInitialWhitespace; 00054 std::string myLastWhitespace; 00055 }; 00056 00057 #endif 00058