summaryrefslogtreecommitdiff
path: root/cpp/include/Slice/CPlusPlusUtil.h
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-10-08 23:00:04 +0000
committerMarc Laukien <marc@zeroc.com>2001-10-08 23:00:04 +0000
commitb6d77023ad984fb88e01f2c4a12a30827a28c1c7 (patch)
tree31cb6ffb9787430b76262e5a73776c2eb52ba03b /cpp/include/Slice/CPlusPlusUtil.h
parentIce::Object now inherits virtually from IceUtil::Shared in order to allow (diff)
downloadice-b6d77023ad984fb88e01f2c4a12a30827a28c1c7.tar.bz2
ice-b6d77023ad984fb88e01f2c4a12a30827a28c1c7.tar.xz
ice-b6d77023ad984fb88e01f2c4a12a30827a28c1c7.zip
moved generic C++ stuff to Slice library
Diffstat (limited to 'cpp/include/Slice/CPlusPlusUtil.h')
-rw-r--r--cpp/include/Slice/CPlusPlusUtil.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/cpp/include/Slice/CPlusPlusUtil.h b/cpp/include/Slice/CPlusPlusUtil.h
new file mode 100644
index 00000000000..26c306435d3
--- /dev/null
+++ b/cpp/include/Slice/CPlusPlusUtil.h
@@ -0,0 +1,44 @@
+// **********************************************************************
+//
+// Copyright (c) 2001
+// MutableRealms, Inc.
+// Huntsville, AL, USA
+//
+// All Rights Reserved
+//
+// **********************************************************************
+
+#ifndef C_PLUS_PLUS_UTIL_H
+#define C_PLUS_PLUS_UTIL_H
+
+#include <Slice/Parser.h>
+#include <Slice/OutputUtil.h>
+
+namespace Slice
+{
+
+struct ToIfdef
+{
+ char operator()(char);
+};
+
+std::string changeInclude(const std::string&, const std::vector<std::string>&);
+void printHeader(Output&);
+void printVersionCheck(Output&);
+void printDllExportStuff(Output&, const std::string&);
+
+std::string typeToString(const TypePtr&);
+std::string returnTypeToString(const TypePtr&);
+std::string inputTypeToString(const TypePtr&);
+std::string outputTypeToString(const TypePtr&);
+std::string exceptionTypeToString(const TypePtr&);
+
+void writeMarshalUnmarshalCode(Output&, const TypePtr&, const std::string&, bool, const std::string& = "",
+ bool = true);
+void writeMarshalCode(Output&, const std::list<std::pair<TypePtr, std::string> >&, const TypePtr&);
+void writeUnmarshalCode(Output&, const std::list<std::pair<TypePtr, std::string> >&, const TypePtr&);
+void writeAllocateCode(Output&, const std::list<std::pair<TypePtr, std::string> >&, const TypePtr&);
+
+}
+
+#endif