summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/examples/CosEC/TypedSimple/Country_i.h
blob: a1ba3fe38262780d5f39cbc7b501784cdcb4ff92 (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
// -*- C++ -*-
//
// $Id$

#ifndef COUNTRYI_H_
#define COUNTRYI_H_

#include "CountryS.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

//Class Country_i
class Country_i : public virtual POA_Country
{
public:
  //Constructor
  Country_i (CORBA::ORB_ptr orb);

  //Destructor
  virtual ~Country_i (void);

  virtual void update_population (const char * country,
                                  CORBA::Long population);

  virtual CORBA::Object_ptr get_typed_consumer (void);

  virtual void push (const CORBA::Any & data);

  virtual void disconnect_push_consumer (void);

private:
  /// The ORB
  CORBA::ORB_var orb_;
};

#endif /* COUNTRYI_H_  */