summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/OutputUtil.h
diff options
context:
space:
mode:
authorZeroC Staff <git@zeroc.com>2001-07-25 19:48:36 +0000
committerZeroC Staff <git@zeroc.com>2001-07-25 19:48:36 +0000
commit76e6f638ac9fbd902dcc7a30f5a6cbf71862f4dd (patch)
tree2e54b287750443c3313701a78e1a968a02c1ce40 /cpp/src/Slice/OutputUtil.h
parentfixes (diff)
downloadice-76e6f638ac9fbd902dcc7a30f5a6cbf71862f4dd.tar.bz2
ice-76e6f638ac9fbd902dcc7a30f5a6cbf71862f4dd.tar.xz
ice-76e6f638ac9fbd902dcc7a30f5a6cbf71862f4dd.zip
added support for spaces, variable block start/end text and variable indent
sizes
Diffstat (limited to 'cpp/src/Slice/OutputUtil.h')
-rw-r--r--cpp/src/Slice/OutputUtil.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/cpp/src/Slice/OutputUtil.h b/cpp/src/Slice/OutputUtil.h
index 69e93d9a9e9..f4f634d5981 100644
--- a/cpp/src/Slice/OutputUtil.h
+++ b/cpp/src/Slice/OutputUtil.h
@@ -37,7 +37,12 @@ class ICE_API Output : ::__Ice::noncopyable
public:
Output();
- Output(const char*);
+ Output(const char*);
+
+ void setBeginBlock(const char *); // what do we use at block starts?
+ void setEndBlock(const char *); // what do we use the block end?
+ void setIndent(int); // what is the indent level?
+ void setUseTab(bool); // should we output tabs?
void open(const char*); // Open output stream
@@ -63,7 +68,12 @@ private:
int pos_;
int indent_;
std::stack<int> indentSave_;
- bool separator_;
+ bool separator_;
+
+ std::string _blockStart;
+ std::string _blockEnd;
+ bool _useTab;
+ int _indentSize;
};
template<typename T>