Data_pack

abstract class for treating a pair of data time and data value which we call datapack

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

Quick Index

DESCRIPTION

Class Summary

class Data_pack
{

public:
time_t Data_time(void) ;
void Set_data_time(time_t d_time) ;
void Dpack2file(FILE* fp) ;
void Dpack2ofile(FILE* fp) ;
void Dstr2dpack(char*& dstr) ;
Data_pack(void) ;
~Data_pack(void) ;
protected:
time_t data_time;
}; // Data_pack

Back to the top of Data_pack


DESCRIPTION

In hydrologic simulations in which the states are updated dynamically, the data which are sent and received by elements, subsytems, and total sytem of the hydrologic system are pairs of data value(s) and a "data time." Here, "data time" means the time to which the data are related.

For example, suppose we have the value of discharge Q at time t at some stream point. Then, we call the value of discharge Q "data value" and time t "data time."

We call a pair of data time and data value "datapack," and we prepare class Data_pack, which is an abstract class used as a base class from which various datapack classes are derived.

"datapack" = "data time" + "data value"

Because there are various data types for data value, there could be various datapack classes.

Class Data_pack is a base class from which various datapack classes are derived.

keywords: datapack, data time, data value

Back to the top of Data_pack


time_t data_time;

the unix time when the data was recorded.

  time_t  data_time;

Back to the top of Data_pack


time_t Data_time(void) ;

Returns the data time

  time_t Data_time(void)                            
;

Function is currently defined inline.


Back to the top of Data_pack


void Set_data_time(time_t d_time) ;

Set the data time

  void Set_data_time(time_t d_time)                        
;

Function is currently defined inline.


Back to the top of Data_pack


void Dpack2file(FILE* fp) ;

Declares the function Dpack2file as pure virtual. Dpack2file prints the datapack into a file in the data format for internal work.

  virtual void Dpack2file(FILE* fp) = NULL;

Back to the top of Data_pack


void Dpack2ofile(FILE* fp) ;

Declares the function Dpack2ofile as pure virtual. Dpack2ofile prints the datapack into a file in the simple data format.

  virtual void Dpack2ofile(FILE* fp) = NULL;

Back to the top of Data_pack


void Dstr2dpack(char*& dstr) ;

Declare the function Dstr2dpack as pure virtual. Dstr2dpack reads the datapack datum from the data string 'dstr'.

  virtual void Dstr2dpack(char*& dstr) = NULL;

Back to the top of Data_pack


Data_pack(void) ;

Constructor

  Data_pack(void) ;

Function is currently defined inline.


Back to the top of Data_pack


~Data_pack(void) ;

Destructor. Data_pack is an abstract class, the destructor is declared as virtual.

  virtual ~Data_pack(void)   
;

Function is currently defined inline.


Back to the top of Data_pack


All Members

public:
time_t Data_time(void) ;
void Set_data_time(time_t d_time) ;
void Dpack2file(FILE* fp) ;
void Dpack2ofile(FILE* fp) ;
void Dstr2dpack(char*& dstr) ;
protected:
time_t data_time;

Back to the top of Data_pack


Ancestors

Class does not inherit from any other class.

Back to the top of Data_pack


Descendants

Back to the top of Data_pack


Generated from source by the Cocoon utilities on Sun Sep 3 22:51:59 2000 .

Report problems to jkotula@stratasys.com