summaryrefslogtreecommitdiff
path: root/cpp/include/Slice/JavaUtil.h
diff options
context:
space:
mode:
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;
};