diff options
author | Mark Spruiell <mes@zeroc.com> | 2001-11-08 21:40:58 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2001-11-08 21:40:58 +0000 |
commit | 2ec3e613857c36a77b376e8d7f127cf4f4c2f7b6 (patch) | |
tree | 9bbd9bd6bdda65e61dc955110ca05d92d3c44b4d /cpp/src/slice2java/Gen.h | |
parent | initial check-in (diff) | |
download | ice-2ec3e613857c36a77b376e8d7f127cf4f4c2f7b6.tar.bz2 ice-2ec3e613857c36a77b376e8d7f127cf4f4c2f7b6.tar.xz ice-2ec3e613857c36a77b376e8d7f127cf4f4c2f7b6.zip |
adding helpers
Diffstat (limited to 'cpp/src/slice2java/Gen.h')
-rw-r--r-- | cpp/src/slice2java/Gen.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/cpp/src/slice2java/Gen.h b/cpp/src/slice2java/Gen.h index 9f10e2fdee4..798751d9cf2 100644 --- a/cpp/src/slice2java/Gen.h +++ b/cpp/src/slice2java/Gen.h @@ -103,8 +103,6 @@ private: virtual void visitExceptionEnd(const ExceptionPtr&); virtual bool visitStructStart(const StructPtr&); virtual void visitStructEnd(const StructPtr&); - virtual void visitSequence(const SequencePtr&); - virtual void visitDictionary(const DictionaryPtr&); virtual void visitEnum(const EnumPtr&); virtual void visitDataMember(const DataMemberPtr&); }; @@ -125,6 +123,20 @@ private: void writeHolder(const TypePtr&); }; + + class HelperVisitor : public JavaVisitor + { + public: + + HelperVisitor(const std::string&, const std::string&); + + virtual bool visitClassDefStart(const ClassDefPtr&); + virtual bool visitExceptionStart(const ExceptionPtr&); + virtual bool visitStructStart(const StructPtr&); + virtual void visitSequence(const SequencePtr&); + virtual void visitDictionary(const DictionaryPtr&); + virtual void visitEnum(const EnumPtr&); + }; }; } |