summaryrefslogtreecommitdiff
path: root/cpp/include/Slice/JavaUtil.h
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2004-07-02 01:14:00 +0000
committerMark Spruiell <mes@zeroc.com>2004-07-02 01:14:00 +0000
commitc11d0fed2d828d3a23c895328843bda33a4fa71c (patch)
tree68a9538afa133c126852af348621b05eaa4d7257 /cpp/include/Slice/JavaUtil.h
parentwinsock2.h is now included (diff)
downloadice-c11d0fed2d828d3a23c895328843bda33a4fa71c.tar.bz2
ice-c11d0fed2d828d3a23c895328843bda33a4fa71c.tar.xz
ice-c11d0fed2d828d3a23c895328843bda33a4fa71c.zip
Slice checksum changes
Diffstat (limited to 'cpp/include/Slice/JavaUtil.h')
-rw-r--r--cpp/include/Slice/JavaUtil.h28
1 files changed, 25 insertions, 3 deletions
diff --git a/cpp/include/Slice/JavaUtil.h b/cpp/include/Slice/JavaUtil.h
index bc1e5efc514..ee01c743919 100644
--- a/cpp/include/Slice/JavaUtil.h
+++ b/cpp/include/Slice/JavaUtil.h
@@ -16,6 +16,31 @@
namespace Slice
{
+class SLICE_API JavaOutput : public ::IceUtil::Output
+{
+public:
+
+ JavaOutput();
+ JavaOutput(std::ostream&);
+ JavaOutput(const char*);
+
+ //
+ // Open a file to hold the source for a Java class. The first
+ // argument is the class name (including an optional leading
+ // package). Intermediate directories will be created as
+ // necessary to open the file in the package. The second
+ // argument specifies a directory prefix in which to locate
+ // the class.
+ //
+ // After successfully opening the file, the function invokes
+ // printHeader() and then emits a "package" statement if
+ // necessary.
+ //
+ bool openClass(const std::string&, const std::string& = std::string());
+
+ virtual void printHeader();
+};
+
class SLICE_API JavaGenerator : public ::IceUtil::noncopyable
{
public:
@@ -126,10 +151,7 @@ private:
StringSet _history;
};
- void printHeader();
-
std::string _dir;
-
::IceUtil::Output* _out;
};