blob: 94c499e1a9dcd075c306df8bd2eff61ffa726384 (
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
63
64
65
66
|
// file : CIDLC/UtilityTypeNameEmitters.hpp
// author : Jeff Parsons <j.parsons@vanderbilt.edu>
// cvs-id : $Id$
#ifndef UTILITYTYPENAMEEMITTERS_HPP
#define UTILITYTYPENAMEEMITTERS_HPP
#include "CCF/CIDL/SemanticGraph.hpp"
#include "CCF/CIDL/Traversal.hpp"
#include "EmitterBase.hpp"
using namespace std;
using namespace CCF::CIDL;
using namespace CCF::CIDL::SemanticGraph;
// Emits type's full scoped name.
struct FullTypeNameEmitter : Traversal::Type,
EmitterBase
{
FullTypeNameEmitter (Context&);
virtual void
traverse (SemanticGraph::Type&);
};
// Emits type's local name.
struct SimpleTypeNameEmitter : Traversal::Type,
EmitterBase
{
SimpleTypeNameEmitter (Context&);
virtual void
traverse (SemanticGraph::Type&);
};
// Emits name of type's enclosing scope.
struct EnclosingTypeNameEmitter : Traversal::Type,
EmitterBase
{
EnclosingTypeNameEmitter (Context&);
virtual void
traverse (SemanticGraph::Type&);
};
// Emits scoped name minus the leading double colon.
struct StrippedTypeNameEmitter : Traversal::Type,
EmitterBase
{
StrippedTypeNameEmitter (Context&);
virtual void
traverse (SemanticGraph::Type&);
};
// Emits scoped name in flat form for use with a prefix.
struct FacetEnclosingTypeNameEmitter : Traversal::Type,
EmitterBase
{
FacetEnclosingTypeNameEmitter (Context&);
virtual void
traverse (SemanticGraph::Type&);
};
#endif // UTILITYTYPENAMEEMITTERS_HPP
|