home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / src / libgplus.5 / libgplus / etc / graph / read_dat.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-19  |  732 b   |  28 lines

  1. // -*- C++ -*-
  2. // READ_DATA reads ascii (or binary) data from an istream (or File) of
  3. // coordinates and labels.  It passes back the array of points (x, y,
  4. // and label) containing the data.
  5.  
  6. #ifndef read_data_h
  7. #define read_data_h 1
  8.  
  9. #include <stream.h>
  10. #include <String.h>
  11. #include <ctype.h>
  12. #include "pXPlex.h"
  13. #include <float.h>
  14.  
  15. #define sp <<" "<<
  16. #define nl <<"\n"
  17.  
  18. // data_type value indicates the type of data present in the input files.
  19. typedef enum { ASCII, DOUBLE, INT } data_type;
  20.  
  21. // read ascii binary data from a file
  22. void
  23. read_data (istream& in, char* in_filename, pointXPlex &pplex,
  24.        int auto_abscissa, double x_start,
  25.        double delta_x, int &symbol_number,
  26.        data_type input_data, int switch_symbols);
  27. #endif
  28.