Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

util_io.h

Go to the documentation of this file.
00001 
00003 
00004 #define MAX_INPUT_LINE_LENGTH 255
00005 
00006 int get_line(istream & s, char * line);
00007 int check_input_line(istream &s, char* reference_string);
00008 int check_and_skip_input_line(istream &s, char* reference_string);
00009 int get_data_line(istream & s,char * input_line);
00010 void set_vector_from_input_line(vec & v, char * input_line);
00011 void set_vector_from_string(vec & v, char *str);
00012 xreal get_xreal_from_input_line(char * input_line);
00013 int matchbracket(const char *bracket, const char *line); // ("(Particle", line)
00014                                                          // matches "(P" or "(Particle"
00015 const char *getequals(const char *line, char *keyword); // demand "keyword = value"
00016 
00017 bool use_short_story_keywords( bool useshort ); // controls put_story_{head,foot}er
00018 
00019 real read_unformatted_real( istream & s );
00020 void read_unformatted_vector( istream & s, vec & v );
00021 real read_unformatted32_real( istream & s );
00022 void read_unformatted32_vector( istream & s, vec & v );
00023 
00024 void write_unformatted_real( ostream & s, real r );
00025 void write_unformatted_vector( ostream & s, vec & v );
00026 void write_unformatted32_real( ostream & s, real r );
00027 void write_unformatted32_vector( ostream & s, vec & v );
00028 
00029 // Kludges to make GNU/HP output work:
00030 
00031 void put_story_header(ostream & s, char * id);
00032 void put_story_footer(ostream & s, char * id);
00033 void put_real_number(ostream & s, char *, xreal x);
00034 void put_real_number(ostream & s, char *, real x);
00035 void put_real_vector(ostream & s, char *, vec v);
00036 void put_integer(ostream & s, char *, int i);
00037 void put_string(ostream & s, char *, char * str);
00038 
00039  

Generated on Wed Jul 20 12:43:37 2005 for Starlab by  doxygen 1.4.3