home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 27 / IOPROG_27.ISO / SOFT / CCARACT.ZIP / cheure.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-05  |  780 b   |  42 lines

  1. #ifndef INCL_CHEURE_HPP
  2. #define INCL_CHEURE_HPP
  3.  
  4. class CHeure
  5. {
  6.  public :
  7.  
  8.  CHeure();
  9.  CHeure( int heure, int minute, int seconde = 0 );
  10.  ~CHeure();
  11.  void HeureSysteme();
  12.  
  13.  int PrendHeure();
  14.  int PrendMinute();
  15.  int PrendSeconde();
  16.  bool AffecteHeure( int heure );
  17.  bool AffecteMinute( int minute );
  18.  bool AffecteSeconde( int seconde );
  19.  CString Format( char * f );
  20.  
  21.  bool operator=( CHeure ch );
  22.  bool operator>( CHeure ch );
  23.  bool operator>=( CHeure ch );
  24.  bool operator<( CHeure ch );
  25.  bool operator<=( CHeure ch );
  26.  bool operator==( CHeure ch );
  27.  
  28.  CHeure * operator=( CTime ct );
  29.  bool operator==( CTime ct  );
  30.  
  31.  bool EgaleHeureMinute( CHeure ch  );
  32.  bool EgaleHeureMinute( CTime ct  );
  33.  
  34.  private :
  35.  
  36.  int h;
  37.  int m;
  38.  int s;
  39.  
  40. };
  41.  
  42. #endif