diff options
author | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2007-03-18 22:23:37 +0000 |
---|---|---|
committer | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2007-03-18 22:23:37 +0000 |
commit | 06a34455bd98b1379cc69bbc5b2cf085e0fc0d9b (patch) | |
tree | 8815ce3b3a85c3c4285429295f338e00ea4497f4 /CIAO/CCF/CCF/IDL2/SemanticGraph/Enum.cpp | |
parent | d66fcc9b4aaec8e88eeb83fc578fdf8a3cc963de (diff) | |
download | ATCD-Static_RT_DAnCE.tar.gz |
Diffstat (limited to 'CIAO/CCF/CCF/IDL2/SemanticGraph/Enum.cpp')
-rw-r--r-- | CIAO/CCF/CCF/IDL2/SemanticGraph/Enum.cpp | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/CIAO/CCF/CCF/IDL2/SemanticGraph/Enum.cpp b/CIAO/CCF/CCF/IDL2/SemanticGraph/Enum.cpp new file mode 100644 index 00000000000..e5de88c449e --- /dev/null +++ b/CIAO/CCF/CCF/IDL2/SemanticGraph/Enum.cpp @@ -0,0 +1,58 @@ +// file : CCF/IDL2/SemanticGraph/Enum.cpp +// author : Boris Kolpackov <boris@dre.vanderbilt.edu> +// cvs-id : $Id$ + +#include "CCF/IDL2/SemanticGraph/Enum.hpp" + +namespace CCF +{ + namespace IDL2 + { + namespace SemanticGraph + { + using Introspection::TypeInfo; + using Introspection::Access; + + // Enum + // + // + namespace + { + TypeInfo + enum_init_ () + { + TypeInfo ti (typeid (Enum)); + ti.add_base (Access::PUBLIC, true, Type::static_type_info ()); + ti.add_base (Access::PUBLIC, true, Scope::static_type_info ()); + return ti; + } + + TypeInfo enum_ (enum_init_ ()); + } + + TypeInfo const& Enum:: + static_type_info () { return enum_; } + + + // Enumerator + // + // + namespace + { + TypeInfo + enumerator_init_ () + { + TypeInfo ti (typeid (Enumerator)); + ti.add_base (Access::PUBLIC, true, Nameable::static_type_info ()); + ti.add_base (Access::PUBLIC, true, Instance::static_type_info ()); + return ti; + } + + TypeInfo enumerator_ (enumerator_init_ ()); + } + + TypeInfo const& Enumerator:: + static_type_info () { return enumerator_; } + } + } +} |