Data

Template class of Datapack. Derived from Data_pack and Port_type< T>.

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

Quick Index

DESCRIPTION

Class Summary

template <class T>
class Data : public Data_pack, public Port_type<T>
{

public:
void Set_data(time_t t, const T& v) ;
void Get_data(time_t& t, T& v) ;
T Value(void) ;
Data(void) ;
~Data(void) ;
Data(char*& data_str);
void Dpack2file(FILE* fp);
void Dpack2ofile(FILE* fp);
void Dstr2dpack(char*& data_str);
protected:
T value;
}; // Data

Back to the top of Data


DESCRIPTION

Data< T> は、型 T のデータパッククラスです。

Data< T> is a class for treating datapack of type T. Data members of class Data< T> are

実際に使われることになる基本的なデータ型 Data< double>, Data< int>, Data< long>, Data< OHymosString> は、p_itmp.cc で、 instantiate されます。すなわち、p_itmp.cc の中に

      template class Data<double>;
      template class Data<float>;
      template class Data<int>;
      template class Data<long>;
      template class Data<OHyMosString>;

と記述してあります。

libohymos.a が作成されるときに、p_itmp.cc はコンパイルされ、その object module が libohymos.a に収録されます。

このため、Data< double>, Data< float>, Data< int>, Data< long>, Data< OHyMosString>は、OHyMOS に組み込みの型と して使用できます。

Back to the top of Data


T value;

Data member. value stores a data value of Type T.

  T value;  // data value

Back to the top of Data


void Set_data(time_t t, const T& v) ;

set the data time and the data value

in t
-- data time
in v
-- value

  void Set_data(time_t t, const T& v)                                 
;

Function is currently defined inline.


Back to the top of Data


void Get_data(time_t& t, T& v) ;

Get data time and data value

out t
-- data time
out v
-- data value

  void Get_data(time_t& t, T& v)                              
;

Function is currently defined inline.


Back to the top of Data


T Value(void) ;

Returns data value

  T Value(void)                  
;

Function is currently defined inline.


Back to the top of Data


Data(void) ;

Constructor

The constructor uses the constructors of the base classes. The data members are initialized by those base classes' constructors as follows:

            ・data_time     : 0
            ・value         : 0
     

  Data(void) ;

Function is currently defined inline.


Back to the top of Data


~Data(void) ;

Destructor

The destructor is delared as virtual in the base class Data_pack.

  ~Data(void)   
;

Function is currently defined inline.


Back to the top of Data


Data(char*& data_str);

data string "data_str" is transformed into datapack

  Data(char*& data_str);

Back to the top of Data


void Dpack2file(FILE* fp);

datapack will be printed into a file in simple data format

  void Dpack2file(FILE* fp);

Back to the top of Data


void Dpack2ofile(FILE* fp);

datapack will be printed into a file in simple data format

  void Dpack2ofile(FILE* fp);

Back to the top of Data


void Dstr2dpack(char*& data_str);

datapack value will be set to be a value which is read in from data string.

  void Dstr2dpack(char*& data_str);

Back to the top of Data


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) ;
void Set_data(time_t t, const T& v) ;
void Get_data(time_t& t, T& v) ;
T Value(void) ;
void Dstr2dpack(char*& data_str);
protected:
time_t data_time;
static char* data_pack_type;
T value;

Back to the top of Data


Ancestors

Inheritance chain for Data:

Back to the top of Data


Descendants

Class is not inherited by any others.

Back to the top of Data


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

Report problems to jkotula@stratasys.com