Sender_port

Abstract class of Sender ports

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

Quick Index

DESCRIPTION

Class Summary

class Sender_port : public Port
{

public:
char* Data_pack_type(void) ;
Boolean Register_receiver(void* r);
Boolean Switch(void);
Boolean Are_you_ready(void) ;
void Set_comment_string(char* cmt);
char* Get_comment_string(void);
void Set_data_pack_array(void) ;
Boolean Can_you_get_data(time_t t_from, time_t t_to) ;
void Get_data_pack_array(void**& dp_array, int& num_of_dp) ;
Boolean Get_data_pack( void*& former, time_t data_time, void*& later, char flag) ;
void Reduce_data_pack_stock(void) ;
time_t Necessary_time_from(void);
time_t Necessary_time_to(void);
void Print_connection(FILE* fp_out, char* head);
Boolean Init(char* p_name, int p_num) ;
Sender_port(char* p_name, int p_num);
Sender_port(void);
~Sender_port(void);
protected:
List* buffer_list;
void** receiver_array;
int number_of_receivers;
char* comment_string;
}; // Sender_port

Back to the top of Sender_port


DESCRIPTION

Abstract class for creating sender ports.

By inheritance from this Sender_port class, the classes Send_port and Relay_port are created.

sender port を作成するための抽象クラスです。sender port は、送信機能を 持った端子です。

クラス Send_portRelay_port が、このクラスから派生によって作成され ます。

いずれにしても、受信側からすれば、データを送信してくれる機能を持ってい るので、その共通部分のインターフェースを Sender_port で定義しています。

Sender_port には複数の送信先端子 (データを受信する端子) を接続すること ができます。

Back to the top of Sender_port


List* buffer_list;

List used internal work

  List*	buffer_list;			//; 作業用リスト

Back to the top of Sender_port


void** receiver_array;

Array of ports which receive data from this port

  void**	receiver_array;			//; 送信先端子記憶用配列

Back to the top of Sender_port


int number_of_receivers;

number of ports which receive data from this port

  int		number_of_receivers;	//; receiver_array の要素数

Back to the top of Sender_port


char* comment_string;

Comment about data

  char*   comment_string;         //; comment about data

Back to the top of Sender_port


char* Data_pack_type(void) ;

Returns the datapack-type string of this port. Because this is a pure virtual function, it should be implemented in derived classes.

  virtual char* Data_pack_type(void) = NULL;

Back to the top of Sender_port


Boolean Register_receiver(void* r);

Register a receiver. This function is a pure virtual function in the base class Port. Implemented in this class Sener_port.

  virtual Boolean Register_receiver(void* r);

Back to the top of Sender_port


Boolean Switch(void);

  virtual Boolean Switch(void);

Back to the top of Sender_port


Boolean Are_you_ready(void) ;

  virtual Boolean Are_you_ready(void)
		                                          ;

Function is currently defined inline.


Back to the top of Sender_port


void Set_comment_string(char* cmt);

Copy the string cmt to comment_string which is a data member of this class.

  void Set_comment_string(char* cmt);

Back to the top of Sender_port


char* Get_comment_string(void);

Creates a string and copy comment_string to the string. This function returns the string.

  char* Get_comment_string(void);

Back to the top of Sender_port


void Set_data_pack_array(void) ;

  virtual void Set_data_pack_array(void) = NULL;

Back to the top of Sender_port


Boolean Can_you_get_data(time_t t_from, time_t t_to) ;

  virtual Boolean Can_you_get_data(time_t t_from, time_t t_to) = NULL;

Back to the top of Sender_port


void Get_data_pack_array(void**& dp_array, int& num_of_dp) ;

  virtual void Get_data_pack_array(void**& dp_array, int& num_of_dp)
						= NULL;

Back to the top of Sender_port


Boolean Get_data_pack( void*& former, time_t data_time, void*& later, char flag) ;

  virtual Boolean Get_data_pack(
						void*& former, time_t data_time, void*& later,
						char flag) = NULL;

Back to the top of Sender_port


void Reduce_data_pack_stock(void) ;

  virtual void Reduce_data_pack_stock(void) = NULL;

Back to the top of Sender_port


time_t Necessary_time_from(void);

  virtual time_t Necessary_time_from(void);

Back to the top of Sender_port


time_t Necessary_time_to(void);

  virtual time_t Necessary_time_to(void);

Back to the top of Sender_port


void Print_connection(FILE* fp_out, char* head);

  void Print_connection(FILE* fp_out, char* head);

Back to the top of Sender_port


Boolean Init(char* p_name, int p_num) ;

  Boolean Init(char* p_name, int p_num)
		              ;

Function is currently defined inline.


Back to the top of Sender_port


Sender_port(char* p_name, int p_num);

  Sender_port(char* p_name, int p_num);

Back to the top of Sender_port


Sender_port(void);

  Sender_port(void);

Back to the top of Sender_port


~Sender_port(void);

  ~Sender_port(void);

Back to the top of Sender_port


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);
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;

Back to the top of Sender_port


Ancestors

Inheritance chain for Sender_port:

Back to the top of Sender_port


Descendants

Back to the top of Sender_port


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

Report problems to jkotula@stratasys.com