summaryrefslogtreecommitdiff
path: root/cpp/src/slice2java/Gen.h
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2012-06-15 15:00:48 -0700
committerMark Spruiell <mes@zeroc.com>2012-06-15 15:00:48 -0700
commit3ff1990582c91418554b00c22314a67bba04de2a (patch)
treebfaa6b82c33ed17db496042834200641ed3ce670 /cpp/src/slice2java/Gen.h
parent* Minor C++ fixes (diff)
downloadice-3ff1990582c91418554b00c22314a67bba04de2a.tar.bz2
ice-3ff1990582c91418554b00c22314a67bba04de2a.tar.xz
ice-3ff1990582c91418554b00c22314a67bba04de2a.zip
* Grammar fixes
* Implementing optional data members in Java
Diffstat (limited to 'cpp/src/slice2java/Gen.h')
-rw-r--r--cpp/src/slice2java/Gen.h25
1 files changed, 22 insertions, 3 deletions
diff --git a/cpp/src/slice2java/Gen.h b/cpp/src/slice2java/Gen.h
index 36315c11817..9aba15942a1 100644
--- a/cpp/src/slice2java/Gen.h
+++ b/cpp/src/slice2java/Gen.h
@@ -63,6 +63,26 @@ protected:
const std::list<std::string>& = std::list<std::string>());
//
+ // Returns the optional type corresponding to the given Slice type.
+ //
+ std::string getOptionalType(const TypePtr&);
+
+ //
+ // Marshal/unmarshal a data member.
+ //
+ void writeMarshalDataMember(::IceUtilInternal::Output&, const std::string&, const DataMemberPtr&, int&);
+ void writeUnmarshalDataMember(::IceUtilInternal::Output&, const std::string&, const DataMemberPtr&, int&,
+ bool, int&);
+ void writeStreamMarshalDataMember(::IceUtilInternal::Output&, const std::string&, const DataMemberPtr&, int&);
+ void writeStreamUnmarshalDataMember(::IceUtilInternal::Output&, const std::string&, const DataMemberPtr&, int&,
+ bool, int&);
+
+ //
+ // Generate a patcher class.
+ //
+ void writePatcher(::IceUtilInternal::Output&, const std::string&, const DataMemberList&, bool);
+
+ //
// Generate dispatch and marshalling methods for a class or interface.
//
void writeDispatchAndMarshalling(::IceUtilInternal::Output&, const ClassDefPtr&, bool);
@@ -165,10 +185,9 @@ private:
private:
//
- // Verifies that a getter/setter method does not conflict with an operation.
+ // Verifies that a data member method does not conflict with an operation.
//
- bool validateGetterSetter(const OperationList&, const std::string&, int, const std::string&,
- const std::string&);
+ bool validateMethod(const OperationList&, const std::string&, int, const std::string&, const std::string&);
bool _stream;
};