I_file

I_file< T> is a class of input port which reads in Data< T> from an input file and sends them.

[ libohymos | Source | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

DESCRIPTION

Class Summary

template <class T>
class I_file : public Input_file, public Port_type<T>
{

public:
char* Data_pack_type(void) ;
void* Make_data_pack(char* line_data);
void Send_by_string(char*& string);
I_file<T>* NewPort() ;
Boolean Init(char* f_name) ;
I_file(char* f_name) ;
I_file(void) ;
~I_file(void) ;
protected:
}; // I_file

Back to the top of I_file


DESCRIPTION

I_file< T> is a class of input port which reads in Data< T> from an input file and sends them.

I_file< T> can be connected with Receive< T>, Relay< T>, O_file< T>.

I_file< T> reads a input file using "simple data format for input and output."

"Simple data format for input and output" is a format in which

        all the data items for a datapack should be written in one line,
        and between data items should be separated with a number of
        spaces or tabs.

        Example:    120 1.2 2.3 4.5

If you need different format, please make a derived class of I_file< T> and redefine Make_data_pack.

Back to the top of I_file


char* Data_pack_type(void) ;

Returns the data_pack_type which expresses the type of data to be receided.

  char* Data_pack_type(void)                           
;

Function is currently defined inline.


Back to the top of I_file


void* Make_data_pack(char* line_data);

Reads string data of Data< T>, creates Data< T> in heap memory, and returns the pointer to the heap memory.

  void* Make_data_pack(char* line_data);

Back to the top of I_file


void Send_by_string(char*& string);

Sends Data< T> which is stored in the form of string.

  virtual void Send_by_string(char*& string);

Back to the top of I_file


I_file<T>* NewPort() ;

Returns a new pointer to a new I_file< T> Port

  virtual I_file<T>* NewPort()                            
;

Function is currently defined inline.


Back to the top of I_file


Boolean Init(char* f_name) ;

Init

  Boolean Init(char* f_name)                     ;

Function is currently defined inline.


Back to the top of I_file


I_file(char* f_name) ;

Constructor

  I_file(char* f_name)
        ;

Function is currently defined inline.


Back to the top of I_file


I_file(void) ;

Constructor

  I_file(void)
        ;

Function is currently defined inline.


Back to the top of I_file


~I_file(void) ;

Destructor

  ~I_file(void)   
;

Function is currently defined inline.


Back to the top of I_file


All Members

public:
char* Class_name(void) ;
char* Object_name(void) ;
int Object_number(void) ;
void* Owner(void) ;
Boolean Compare(char* c_name, char* o_name, int o_num);
Boolean Compare(char* o_name, int o_num);
Boolean Compare(Object* obj);
Boolean Set_owner(void* o);
void Cprint(FILE* fp_out, char* head);
void Cprint(FILE* fp_out) ;
void Cprint(char* head ) ;
void Oprint(FILE* fp_out, char* head);
void Oprint(FILE* fp_out) ;
void Oprint(char* head ) ;
void Absname( char* absname );
Boolean Init(char* o_name, int o_num);
char* Data_pack_type(void) ;
Boolean Set_sender(void* s);
Boolean Register_receiver(void* r);
Boolean Switch(void);
Boolean Are_you_ready(void) ;
void Creq(void) ;
void Set_data_pack_array(void) ;
Boolean Can_you_get_data(time_t t_from, time_t t_to) ;
Boolean Can_you_get_data(time_t t) ;
void Get_data_pack_array(void**& dp_array, int& num_of_dp) ;
time_t Oldest_data_time(void) ;
time_t Newest_data_time(void) ;
int Number_of_data_packs(void) ;
Boolean Get_data_pack( void*& former, time_t data_time, void*& later, char flag) ;
Boolean Get_data_pack(void*& former, time_t data_time) ;
Boolean Get_data_pack(time_t data_time, void*& later) ;
time_t Necessary_time_from(void) ;
time_t Necessary_time_to(void) ;
void Reduce_data_pack_stock(void) ;
void Print_connection(FILE* fp_out, char* head);
void Print_connection(FILE*) ;
void Print_connection(char* head ) ;
Port* NewPort(); // pure virtual
Boolean Init(char* p_name, int p_num) ;
void Set_comment_string(char* cmt);
char* Get_comment_string(void);
void Stock(void* d_pack);
void Send_by_string(char*& dstr) ;
Boolean Get_data_pack(void*& former, time_t data_time, void*& later, char flag );
void Forget_data_pack_stock(time_t t_from);
Boolean Set_protect_past_data_flag(Boolean pflag) ;
void Clear_data_pack(void);
void Save_send_port_stock(FILE* fp);
void Input_data(void) ;
void* Make_data_pack(char* line_data) ;
void Oprint(FILE* fp_out , char* head );
Boolean Init(char* f_name) ;
void Send_by_string(char*& string);
I_file<T>* NewPort() ;
protected:
char* class_name;
char* object_name;
int object_number;
void* owner;
List* buffer_list;
void** receiver_array;
int number_of_receivers;
char* comment_string;
void** data_pack_array;
int number_of_data_packs;
Boolean protect_past_data_flag;
time_t file_time_at_input;
static char* data_pack_type;

Back to the top of I_file


Ancestors

Inheritance chain for I_file:

Back to the top of I_file


Descendants

Class is not inherited by any others.

Back to the top of I_file


Generated from source by the Cocoon utilities on Sun Sep 3 22:52:05 2000 .

Report problems to jkotula@stratasys.com