summaryrefslogtreecommitdiff
path: root/TAO/examples/OBV/Sequence/series_i.h
blob: c8597a205f22e9ff37399b75de86ecef524add99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// -*- C++ -*-
// $Id$

// ============================================================================
//
// = LIBRARY
//    TAO/examples/OBV/Sequence
//
// = FILENAME
//    series_i.h
//
// = DESCRIPTION
//    This class implements the "series" IDL interface.
//
// = AUTHOR
//    Nanbor Wang <nanbor@cs.wustl.edu>
//
// ============================================================================

#ifndef SERIES_I_H
#define SERIES_I_H

#include "seriesS.h"

class series_i: public POA_series
{
  // = TITLE
  //    Numerial Series Implementation
  //
  // = DESCRIPTION
  //    Implementation of a simple object that performs various
  //    arithmatic computation using OBV.
public:
  // = Initialization and termination methods.
  series_i (void);
  // Constructor

  series_i (series_i &);
  // Copy Constructor added because g++ generates a
  // bad one if not defined

  ~series_i (void);
  // Destructor

  virtual registry* cube (registry *v, CORBA::Environment &env)
    ACE_THROW_SPEC ((CORBA::SystemException));
  // Return the current time/date on the server

  virtual registries *sum (const registries &x, CORBA::Environment &env)
    ACE_THROW_SPEC ((CORBA::SystemException));

  virtual void shutdown (CORBA::Environment &env)
    ACE_THROW_SPEC ((CORBA::SystemException));

  // Shutdown the server.

  void orb (CORBA::ORB_ptr o);
  // Set the ORB pointer.

private:
  CORBA::ORB_var orb_;
  // ORB pointer.

  ACE_UNIMPLEMENTED_FUNC (void operator= (const series_i &))
  // Keeping g++2.7.2
};

#endif /* SERIES_I_H */