summaryrefslogtreecommitdiff
path: root/cpp/src/FreezeScript/TransformAnalyzer.h
blob: 9af9c06126a4ee893a3b96ab1954c90a3de0a959 (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
// **********************************************************************
//
// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

#ifndef FREEZE_SCRIPT_TRANSFORM_ANALYZER_H
#define FREEZE_SCRIPT_TRANSFORM_ANALYZER_H

#include <Slice/Parser.h>
#include <IceUtil/OutputUtil.h>
#include <ostream>

namespace FreezeScript
{

class AnalyzeTransformVisitor;

class TransformAnalyzer
{
public:

    TransformAnalyzer(const Slice::UnitPtr&, const Slice::UnitPtr&, bool, std::ostream&, std::vector<std::string>&,
		      std::vector<std::string>&);
    ~TransformAnalyzer();

    void addDatabase(const std::string&, const Slice::TypePtr&, const Slice::TypePtr&, const Slice::TypePtr&,
		     const Slice::TypePtr&);
    void finish();

private:

    Slice::UnitPtr _old;
    Slice::UnitPtr _new;
    IceUtil::XMLOutput _out;
    AnalyzeTransformVisitor* _visitor;
};

}

#endif