summaryrefslogtreecommitdiff
path: root/CIAO/CCF/Example/ComponentDeploymentDescriptor/SyntaxTree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/CCF/Example/ComponentDeploymentDescriptor/SyntaxTree.cpp')
-rw-r--r--CIAO/CCF/Example/ComponentDeploymentDescriptor/SyntaxTree.cpp113
1 files changed, 113 insertions, 0 deletions
diff --git a/CIAO/CCF/Example/ComponentDeploymentDescriptor/SyntaxTree.cpp b/CIAO/CCF/Example/ComponentDeploymentDescriptor/SyntaxTree.cpp
new file mode 100644
index 00000000000..0a7a3ae6bf2
--- /dev/null
+++ b/CIAO/CCF/Example/ComponentDeploymentDescriptor/SyntaxTree.cpp
@@ -0,0 +1,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_; }
+ }
+}