summaryrefslogtreecommitdiff
path: root/CIAO/connectors/dds4ccm/impl/LocalObject.h
blob: bbaace729fc6ce78d670dd7e33b9e44b853a7de5 (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
// -*- C++ -*-
// $Id$

#ifndef DDS4CCM_LOCALOBJECT_H_
#define DDS4CCM_LOCALOBJECT_H_

#include "tao/LocalObject.h"
#include "dds4ccm/impl/dds4ccm_dds_impl_export.h"

namespace CIAO
{
  namespace DDS4CCM
  {
    /**
     * Base class for all DDS4CCM local facets. It stores
     * an object reference to the component this local
     * facet belongs too.
     */
    class DDS4CCM_DDS_IMPL_Export LocalObject
      : public virtual ::CORBA::LocalObject
    {
    public:
      LocalObject (void);
      virtual ~LocalObject (void);

      void _set_component (::CORBA::Object_ptr component);
      virtual ::CORBA::Object_ptr _get_component (void);

    private:
      ::CORBA::Object_var component_;
    };
  }
}

#endif /* DDS4CCM_LOCALOBJECT_T_H_ */