blob: 89e83c50b9bd4d8bc895bdc17a48e6be9fa500a2 (
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
|
// 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 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
};
friend std::ostream&
operator<< (std::ostream& o, Value d);
};
virtual void
parameter (Direction::Value direction,
IdentifierPtr const& type_id,
SimpleIdentifierPtr const& name_id) = 0;
virtual void
raises (IdentifierPtr const& id) = 0;
};
}
}
}
#endif // CCF_IDL2_SEMANTIC_ACTION_OPERATION_HPP
|