UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ZTracePar.H
1 /* ZTracePar.H */
2 /* $Id: ZTracePar.H,v 1.2 2003/10/22 08:19:38 vlad Exp $ */
3 #ifndef __ZTracePar_H
4 #define __ZTracePar_H
5 
6 #include <stdio.h>
7 
8 
13 class ZTracePar
14 {
15 public:/* data */
16 
17  unsigned samples;
18  unsigned actual[2];
19  float dt;
20  float t0;
22 public:/* methods */
23 
25  ZTracePar (unsigned samples,
26  float dt_ = 1.0, float t0_ = 0.0,
27  const unsigned actual_[2] = NULL);
28 
30  ZTracePar (const ZTracePar& trpar);
31 
33  void assign (unsigned samples,
34  float dt_ = 1.0, float t0_ = 0.0,
35  const unsigned actual_[2] = NULL);
36 
38  void all_actual ();
39 
41  int time2sample (float t) const;
42 
44  float sample2time (int i) const;
45 
47  int operator== (const ZTracePar& trpar) const;
48  int operator!= (const ZTracePar& trpar) const{
49  return !operator==(trpar);
50  };
51 
53  void print_self (FILE* fp = NULL) const;
54 
55 };
56 
57 
58 #endif /* ZTracePar.H */
unsigned samples
Definition: ZTracePar.H:17
void print_self(FILE *fp=NULL) const
void assign(unsigned samples, float dt_=1.0, float t0_=0.0, const unsigned actual_[2]=NULL)
Definition: ZTracePar.H:13
void all_actual()
int time2sample(float t) const
float t0
Definition: ZTracePar.H:20
int operator==(const ZTracePar &trpar) const
ZTracePar(unsigned samples, float dt_=1.0, float t0_=0.0, const unsigned actual_[2]=NULL)
float dt
Definition: ZTracePar.H:19
float sample2time(int i) const
unsigned actual[2]
Definition: ZTracePar.H:18