summaryrefslogtreecommitdiff
path: root/ACE/contrib/utility/Utility/Introspection/Object.hpp
blob: fdf8228c9f3fe8837764393471ed0640fe2634ed (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
// file      : Utility/Introspection/Object.hpp
// author    : Boris Kolpackov <boris@kolpackov.net>
// copyright : Copyright (c) 2002-2003 Boris Kolpackov
// license   : http://kolpackov.net/license.html

#ifndef UTILITY_INTROSPECTION_OBJECT_HPP
#define UTILITY_INTROSPECTION_OBJECT_HPP

#include "Utility/Introspection/TypeInfo.hpp"

namespace Utility
{
  namespace Introspection
  {
    class Object
    {
    public:
      static TypeInfo const&
      static_type_info () throw ();

      virtual TypeInfo const&
      type_info () const throw ();

    protected:
      virtual
      ~Object ();

      Object () throw ();
      Object (Object const&) throw ();

      Object&
      operator= (Object const&) throw ();

    protected:
      virtual void
      type_info (TypeInfo const& tid) throw ();

    private:
      TypeInfo const* type_info_;
    };
  }
}

#include "Utility/Introspection/Object.ipp"

#endif  // UTILITY_INTROSPECTION_OBJECT_HPP
//$Id$