home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bc45 / classsrc.pak / DATEP.CPP < prev    next >
C/C++ Source or Header  |  1997-07-23  |  1KB  |  33 lines

  1. /*------------------------------------------------------------------------*/
  2. /*                                                                        */
  3. /*  DATEP.CPP                                                             */
  4. /*                                                                        */
  5. /*  Copyright (c) 1993, 1994 Borland International                        */
  6. /*  All Rights Reserved                                                   */
  7. /*                                                                        */
  8. /*------------------------------------------------------------------------*/
  9.  
  10. #if !defined( __STRSTREA_H )
  11. #include <strstrea.h>
  12. #endif
  13.  
  14. #if !defined( CLASSLIB_DATE_H )
  15. #include <classlib/date.h>
  16. #endif
  17.  
  18. #if !defined( CLASSLIB_OBJSTRM_H )
  19. #include <classlib/objstrm.h>
  20. #endif
  21.  
  22. opstream _BIDSFAR & _BIDSFUNC operator << ( opstream _BIDSFAR & os, const TDate _BIDSFAR & d )
  23. {
  24.     return os << d.Julnum;
  25. }
  26.  
  27. ipstream _BIDSFAR & _BIDSFUNC operator >> ( ipstream _BIDSFAR & is, TDate _BIDSFAR & d )
  28. {
  29.     return is >> d.Julnum;
  30. }
  31.  
  32.  
  33.