Yurttas/PL/OOL/Cplusplus/F/05/01/02/03/I D A.h

 1/*
 2   Copyright(C) 1998
 3   All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
 4
 5   Permission to use, copy, modify, and distribute this
 6   software and its documentation for EDUCATIONAL purposes
 7   and without fee is hereby granted provided that this
 8   copyright notice appears in all copies.
 9
10   date   : January 1, 1998.
11   authorĀ : Salih Yurttas.
12
13   I_D_A.h
14*/
15
16
17#include <iostream>
18
19using namespace std;
20
21class I_D_A {
22public:
23  I_D_A();
24
25  I_D_A(const I_D_A&);
26
27  I_D_A& operator=(const I_D_A&);
28
29  virtual ~I_D_A();
30
31  virtual int get_s() const;
32
33  virtual int get_i_a(const int) const;
34
35  virtual int* get_i_a() const;
36
37  virtual void set_i_a(const int value=0);
38
39  virtual double get_d_a(const int) const;
40
41  virtual double* get_d_a() const;
42
43  virtual void set_d_a(const double value=0);
44
45  virtual void set_i_d(const int size=0,
46                       const int i_value=0,
47                       const double d_value=0);
48
49  friend ostream& operator<<(ostream&,
50                             const I_D_A&);
51
52protected:
53  int s;
54  int* i_a;
55  double* d_a;
56};