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/ValueTypeMember.hpp | |
parent | d66fcc9b4aaec8e88eeb83fc578fdf8a3cc963de (diff) | |
download | ATCD-06a34455bd98b1379cc69bbc5b2cf085e0fc0d9b.tar.gz |
Diffstat (limited to 'CIAO/CCF/CCF/IDL2/SemanticGraph/ValueTypeMember.hpp')
-rw-r--r-- | CIAO/CCF/CCF/IDL2/SemanticGraph/ValueTypeMember.hpp | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/CIAO/CCF/CCF/IDL2/SemanticGraph/ValueTypeMember.hpp b/CIAO/CCF/CCF/IDL2/SemanticGraph/ValueTypeMember.hpp new file mode 100644 index 00000000000..47649de0c6a --- /dev/null +++ b/CIAO/CCF/CCF/IDL2/SemanticGraph/ValueTypeMember.hpp @@ -0,0 +1,107 @@ +// file : CCF/IDL2/SemanticGraph/ValueTypeMember.hpp +// author : Boris Kolpackov <boris@dre.vanderbilt.edu> +// cvs-id : $Id$ + +#ifndef CCF_IDL2_SEMANTIC_GRAPH_VALUE_TYPE_MEMBER_HPP +#define CCF_IDL2_SEMANTIC_GRAPH_VALUE_TYPE_MEMBER_HPP + +#include "CCF/IDL2/SemanticGraph/Elements.hpp" + +namespace CCF +{ + namespace IDL2 + { + namespace SemanticGraph + { + + // + // + // + class ValueTypeMember : public virtual Nameable, + public virtual Instance + { + public: + struct Access + { + enum Value + { + public_, + private_ + }; + }; + + virtual Access::Value + access () const = 0; + + public: + static Introspection::TypeInfo const& + static_type_info (); + + protected: + ValueTypeMember () // For virtual inheritance only. + { + type_info (static_type_info ()); + } + + virtual + ~ValueTypeMember () = 0; + }; + + + // + // + // + class ValueTypePrivateMember : public virtual ValueTypeMember + { + public: + virtual Access::Value + access () const + { + return Access::private_; + } + + public: + static Introspection::TypeInfo const& + static_type_info (); + + protected: + friend class Graph<Node, Edge>; + + ValueTypePrivateMember (Path const& path, unsigned long line) + : Node (path, line) + { + type_info (static_type_info ()); + } + }; + + + // + // + // + class ValueTypePublicMember : public virtual ValueTypeMember + { + public: + virtual Access::Value + access () const + { + return Access::public_; + } + + public: + static Introspection::TypeInfo const& + static_type_info (); + + protected: + friend class Graph<Node, Edge>; + + ValueTypePublicMember (Path const& path, unsigned long line) + : Node (path, line) + { + type_info (static_type_info ()); + } + }; + } + } +} + +#endif // CCF_IDL2_SEMANTIC_GRAPH_VALUE_TYPE_MEMBER_HPP |