summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/GenCPlusPlusUtil.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2cpp/GenCPlusPlusUtil.h')
-rw-r--r--cpp/src/slice2cpp/GenCPlusPlusUtil.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/cpp/src/slice2cpp/GenCPlusPlusUtil.h b/cpp/src/slice2cpp/GenCPlusPlusUtil.h
new file mode 100644
index 00000000000..35eefdd4c3e
--- /dev/null
+++ b/cpp/src/slice2cpp/GenCPlusPlusUtil.h
@@ -0,0 +1,41 @@
+// **********************************************************************
+//
+// Copyright (c) 2001
+// MutableRealms, Inc.
+// Huntsville, AL, USA
+//
+// All Rights Reserved
+//
+// **********************************************************************
+
+#ifndef GEN_C_PLUS_PLUS_UTIL_H
+#define GEN_C_PLUS_PLUS_UTIL_H
+
+#include <Parser.h>
+#include <OutputUtil.h>
+
+namespace IceLang
+{
+
+std::string typeToString(const Type_ptr&);
+std::string returnTypeToString(const Type_ptr&);
+std::string inputTypeToString(const Type_ptr&);
+std::string outputTypeToString(const Type_ptr&);
+
+void writeMarshalUnmarshalCode(Output&, const Type_ptr&, const std::string&, bool);
+
+void writeMarshalCode(Output&,
+ const std::list<std::pair<Type_ptr, std::string> >&,
+ const Type_ptr&);
+
+void writeUnmarshalCode(Output&,
+ const std::list<std::pair<Type_ptr, std::string> >&,
+ const Type_ptr&);
+
+void writeAllocateCode(Output&,
+ const std::list<std::pair<Type_ptr, std::string> >&,
+ const Type_ptr&);
+
+}
+
+#endif