home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Genie / Projects / Pedestal / Source / Sources / Streams / PedStreamInput.cc < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-24  |  805 b   |  71 lines

  1. /*    =================
  2.  *    PedStreamInput.cc
  3.  *    =================
  4.  */
  5.  
  6. #include <string.h>
  7.  
  8. #include "PedStreamInput.hh"
  9. #include "PedBuffer.hh"
  10.  
  11. PedStreamInput::PedStreamInput()
  12. : mEOF(false)
  13. {
  14.  
  15. }
  16.  
  17. PedStreamInput::~PedStreamInput()
  18. {
  19.  
  20. }
  21.  
  22. short
  23. PedStreamInput::Flush()
  24. {
  25.     return 0;
  26. }
  27.  
  28. short
  29. PedStreamInput::GetByte()
  30. {
  31.     return -1;
  32. }
  33.  
  34. short
  35. PedStreamInput::Unget()
  36. {
  37.     return -1;
  38. }
  39.  
  40. //long
  41. //PedStreamInput::GetChunk(long inCount, char *inBuf)
  42. //{
  43. //    if (inCount <= 0) return 0;
  44. //    short c = GetByte();
  45. //    if (c == -1) return 0;
  46. //    inBuf[0] = c;
  47. //    return 1;
  48. //}
  49. //
  50. //long
  51. //PedStreamInput::SizeOfNextChunk()
  52. //{
  53. //    return 1;
  54. //}
  55. //
  56. //long
  57. //PedStreamInput::CountAheadThroughChar(char inChar)
  58. //{
  59. //    if (mEOF) {
  60. //        return -1;
  61. //    } else {
  62. //        return 0;
  63. //    }
  64. //}
  65.  
  66. bool
  67. PedStreamInput::AtEOF()
  68. {
  69.     return mEOF;
  70. }
  71.