diff options
Diffstat (limited to 'cpp/src/FreezeScript/TransformAnalyzer.h')
-rw-r--r-- | cpp/src/FreezeScript/TransformAnalyzer.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/cpp/src/FreezeScript/TransformAnalyzer.h b/cpp/src/FreezeScript/TransformAnalyzer.h index 92e7d220c52..05a9a8747ae 100644 --- a/cpp/src/FreezeScript/TransformAnalyzer.h +++ b/cpp/src/FreezeScript/TransformAnalyzer.h @@ -11,24 +11,32 @@ #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); - void analyze(const Slice::TypePtr&, const Slice::TypePtr&, const Slice::TypePtr&, const Slice::TypePtr&, - std::ostream&, std::vector<std::string>&, std::vector<std::string>&); + 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; - bool _ignoreTypeChanges; + IceUtil::XMLOutput _out; + AnalyzeTransformVisitor* _visitor; }; } |