// -*- C++ -*- // READ_DATA reads ascii (or binary) data from an istream (or File) of // coordinates and labels. It passes back the array of points (x, y, // and label) containing the data. #ifndef read_data_h #pragma once #define read_data_h 1 #include #include #include #include "point.XPlex.h" #ifdef HUGE #undef HUGE #endif #define HUGE 1e37 #define sp <<" "<< #define nl <<"\n" // data_type value indicates the type of data present in the input files. typedef enum { ASCII, DOUBLE, INT } data_type; overload read_data; // read ascii data from a stream void read_data (istream& in, pointXPlex &pplex, int auto_abscissa, double x_start, double delta_x, int &symbol_number, data_type input_data, int switch_symbols); // read binary data from a file void read_data (File& in, pointXPlex &pplex, int auto_abscissa, double x_start, double delta_x, int &symbol_number, data_type input_data, int switch_symbols); #endif