Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

util_io.C File Reference

#include "starlab_vector.h"
#include "util_io.h"
#include "story.h"
#include <ctype.h>

Go to the source code of this file.

Functions

int get_line (istream &s, char *line)
int check_input_line (istream &s, char *reference_string)
int check_and_skip_input_line (istream &s, char *reference_string)
int get_data_line (istream &s, char *input_line)
int matchbracket (const char *token, const char *line)
const char* getequals (const char *input_line, char *keyword)
void set_vector_from_input_line (vector &v, char *input_line)
void set_vector_from_string (vector &v, char *val)
xreal get_xreal_from_input_line (char *input_line)
bool use_short_story_keywords (bool useshort)
void put_story_header (ostream &s, char *id)
void put_story_footer (ostream &s, char *id)
void put_real_number (ostream &s, char *label, real x)
void put_real_vector (ostream &s, char *label, vector v)
void put_integer (ostream &s, char *label, int i)
void put_string (ostream &s, char *label, char *str)


Function Documentation

int check_and_skip_input_line ( istream & s,
char * reference_string )
 

Definition at line 44 of file util_io.C.

Referenced by forget_node(), and get_node_init().

int check_input_line ( istream & s,
char * reference_string )
 

Definition at line 32 of file util_io.C.

int get_data_line ( istream & s,
char * input_line )
 

Definition at line 74 of file util_io.C.

int get_line ( istream & s,
char * line )
 

Definition at line 21 of file util_io.C.

Referenced by check_and_skip_input_line(), check_input_line(), forget_node_recursive(), get_data_line(), get_node_recursive(), and main().

xreal get_xreal_from_input_line ( char * input_line )
 

Definition at line 136 of file util_io.C.

const char* getequals ( const char * input_line,
char * keyword )
 

Definition at line 91 of file util_io.C.

Referenced by extract_line_text(), and get_node_recursive().

int matchbracket ( const char * token,
const char * line )
 

Definition at line 83 of file util_io.C.

Referenced by check_and_skip_input_line(), check_input_line(), forget_node_recursive(), and get_node_recursive().

void put_integer ( ostream & s,
char * label,
int i )
 

Definition at line 302 of file util_io.C.

Referenced by put_node_body().

void put_real_number ( ostream & s,
char * label,
real x )
 

Definition at line 246 of file util_io.C.

Referenced by print_local_time().

void put_real_vector ( ostream & s,
char * label,
vector v )
 

Definition at line 274 of file util_io.C.

void put_story_footer ( ostream & s,
char * id )
 

Definition at line 213 of file util_io.C.

Referenced by put_node_body(), put_node_recursive(), and put_single_node().

void put_story_header ( ostream & s,
char * id )
 

Definition at line 194 of file util_io.C.

Referenced by put_node_body(), put_node_recursive(), and put_single_node().

void put_string ( ostream & s,
char * label,
char * str )
 

Definition at line 314 of file util_io.C.

Referenced by put_node_body().

void set_vector_from_input_line ( vector & v,
char * input_line )
 

Definition at line 112 of file util_io.C.

void set_vector_from_string ( vector & v,
char * val )
 

Definition at line 119 of file util_io.C.

Referenced by set_vector_from_input_line().

bool use_short_story_keywords ( bool useshort )
 

Definition at line 187 of file util_io.C.


Generated at Sun Feb 24 09:57:32 2002 for STARLAB by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001