summaryrefslogtreecommitdiff
path: root/CIAO/CCF/CCF/IDL2/SemanticAction/Operation.hpp
blob: 7cdd069faa03ee03e528f09b843e8d658f3366be (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
// file      : CCF/IDL2/SemanticAction/Operation.hpp
// author    : Boris Kolpackov <boris@dre.vanderbilt.edu>
// cvs-id    : $Id$

#ifndef CCF_IDL2_SEMANTIC_ACTION_OPERATION_HPP
#define CCF_IDL2_SEMANTIC_ACTION_OPERATION_HPP

#include <iosfwd>

#include "CCF/IDL2/SemanticAction/Elements.hpp"

namespace CCF
{
  namespace IDL2
  {
    namespace SemanticAction
    {
      struct Operation
      {
        virtual ~Operation ()
        {
        }
        
        virtual void
        one_way () = 0;

        virtual void
        two_way () = 0;

        virtual void
        type (IdentifierPtr const& id) = 0;

        virtual void
        name (SimpleIdentifierPtr const& id) = 0;

        struct Direction
        {
          enum Value
          {
            in = 0,
            out,
            inout
          };
        };

        virtual void
        parameter (Direction::Value direction,
                   IdentifierPtr const& type_id,
                   SimpleIdentifierPtr const& name_id) = 0;

        virtual void
        raises (IdentifierPtr const& id) = 0;
      };
    }
  }
}

std::ostream&
operator<< (std::ostream& o,
            CCF::IDL2::SemanticAction::Operation::Direction::Value d);

#endif  // CCF_IDL2_SEMANTIC_ACTION_OPERATION_HPP