blob: 0a7a3ae6bf2b64b1339abeb4872d8bf77bff94d6 (
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
// file : CCF/Example/ComponentDeploymentDescriptor/SyntaxTree.cpp
// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
// cvs-id : $Id$
#include "SyntaxTree.hpp"
using namespace Introspection;
namespace CDD
{
namespace SyntaxTree
{
// Node
//
//
namespace
{
TypeInfo
node_init_ ()
{
TypeInfo ti (typeid (Node));
// I don't really need this information
// ti.add_base (Access::PUBLIC, true, Object::static_type_info ());
return ti;
}
TypeInfo node_ (node_init_ ());
}
TypeInfo const& Node::
static_type_info () { return node_; }
// PortInstance
//
//
namespace
{
TypeInfo
port_instance_init_ ()
{
TypeInfo ti (typeid (PortInstance));
ti.add_base (Access::PUBLIC, true, Node::static_type_info ());
return ti;
}
TypeInfo port_instance_ (port_instance_init_ ());
}
TypeInfo const& PortInstance::
static_type_info () { return port_instance_; }
// ComponentInstance
//
//
namespace
{
TypeInfo
component_instance_init_ ()
{
TypeInfo ti (typeid (ComponentInstance));
ti.add_base (Access::PUBLIC, true, Node::static_type_info ());
return ti;
}
TypeInfo component_instance_ (component_instance_init_ ());
}
TypeInfo const& ComponentInstance::
static_type_info () { return component_instance_; }
// Connection
//
//
namespace
{
TypeInfo
connection_init_ ()
{
TypeInfo ti (typeid (Connection));
ti.add_base (Access::PUBLIC, true, Node::static_type_info ());
return ti;
}
TypeInfo connection_ (connection_init_ ());
}
TypeInfo const& Connection::
static_type_info () { return connection_; }
// Descriptor
//
//
namespace
{
TypeInfo
descriptor_init_ ()
{
TypeInfo ti (typeid (Descriptor));
ti.add_base (Access::PUBLIC, true, Node::static_type_info ());
return ti;
}
TypeInfo descriptor_ (descriptor_init_ ());
}
TypeInfo const& Descriptor::
static_type_info () { return descriptor_; }
}
}
|