diff options
Diffstat (limited to 'TAO/CIAO/CCF/CCF/CIDL/SemanticAction/Impl/Composition.cpp')
-rw-r--r-- | TAO/CIAO/CCF/CCF/CIDL/SemanticAction/Impl/Composition.cpp | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/TAO/CIAO/CCF/CCF/CIDL/SemanticAction/Impl/Composition.cpp b/TAO/CIAO/CCF/CCF/CIDL/SemanticAction/Impl/Composition.cpp deleted file mode 100644 index 30f64912eaa..00000000000 --- a/TAO/CIAO/CCF/CCF/CIDL/SemanticAction/Impl/Composition.cpp +++ /dev/null @@ -1,79 +0,0 @@ -// file : CCF/CIDL/SemanticAction/Impl/Composition.cpp -// author : Boris Kolpackov <boris@dre.vanderbilt.edu> -// cvs-id : $Id$ - -#include "CCF/CIDL/SemanticAction/Impl/Composition.hpp" - -#include <iostream> - -using std::cerr; -using std::endl; - -namespace CCF -{ - namespace CIDL - { - namespace SemanticAction - { - namespace Impl - { - using namespace SemanticGraph; - - Composition:: - Composition (Context& c) - : ScopeBase<SemanticGraph::Composition> (c) - { - } - - void Composition:: - begin (SimpleIdentifierPtr const& id, Category::Value c) - { - if (ctx.trace ()) cerr << "composition " << id << endl; - - if(c == Category::entity) - { - now (ctx.tu ().new_node<EntityComposition> ()); - } - else if (c == Category::process) - { - now (ctx.tu ().new_node<ProcessComposition> ()); - } - else if (c == Category::service) - { - now (ctx.tu ().new_node<ServiceComposition> ()); - } - else - { - now (ctx.tu ().new_node<SessionComposition> ()); - } - - ctx.tu ().new_edge<Defines> (ctx.scope (), now (), id->lexeme ()); - } - - void Composition:: - open_scope () - { - if (ctx.trace ()) cerr << "scope open" << endl; - - push (ctx.scope ()); - ctx.scope (now ()); - } - - void Composition:: - close_scope () - { - ctx.scope (top ()); - pop (); - - if (ctx.trace ()) cerr << "scope close" << endl; - } - - void Composition:: - end () - { - if (ctx.trace ()) cerr << "end" << endl; - } - } - } - } -} |