summaryrefslogtreecommitdiff
path: root/cpp/include/IceUtil/OutputUtil.h
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-02-12 04:59:12 +0000
committerMarc Laukien <marc@zeroc.com>2002-02-12 04:59:12 +0000
commite764b6d2adc5a0ef75caf1f6f406af86bd95aa1c (patch)
tree1136dc7e95fc1d36b509f50a9b87a1c04179a576 /cpp/include/IceUtil/OutputUtil.h
parentmade some inline ops non-inline; added comments and TODOs (diff)
downloadice-e764b6d2adc5a0ef75caf1f6f406af86bd95aa1c.tar.bz2
ice-e764b6d2adc5a0ef75caf1f6f406af86bd95aa1c.tar.xz
ice-e764b6d2adc5a0ef75caf1f6f406af86bd95aa1c.zip
made some inline ops non-inline; added comments and TODOs
Diffstat (limited to 'cpp/include/IceUtil/OutputUtil.h')
-rw-r--r--cpp/include/IceUtil/OutputUtil.h29
1 files changed, 20 insertions, 9 deletions
diff --git a/cpp/include/IceUtil/OutputUtil.h b/cpp/include/IceUtil/OutputUtil.h
index 914c70b0da1..61ce7916949 100644
--- a/cpp/include/IceUtil/OutputUtil.h
+++ b/cpp/include/IceUtil/OutputUtil.h
@@ -36,8 +36,7 @@ public:
OutputBase();
OutputBase(std::ostream&);
OutputBase(const char*);
-
- virtual ~OutputBase() { }
+ virtual ~OutputBase();
void setIndent(int); // What is the indent level?
void setUseTab(bool); // Should we output tabs?
@@ -70,10 +69,14 @@ protected:
bool _separator;
};
-class ICE_UTIL_API NextLine { };
+class ICE_UTIL_API NextLine
+{
+};
extern ICE_UTIL_API NextLine nl;
-class ICE_UTIL_API Separator { };
+class ICE_UTIL_API Separator
+{
+};
extern ICE_UTIL_API Separator sp;
// ----------------------------------------------------------------------
@@ -126,7 +129,9 @@ operator<<(Output& o, const Separator&)
return o;
}
-class ICE_UTIL_API StartBlock { };
+class ICE_UTIL_API StartBlock
+{
+};
extern ICE_UTIL_API StartBlock sb;
template<>
@@ -137,7 +142,9 @@ operator<<(Output& o, const StartBlock&)
return o;
}
-class ICE_UTIL_API EndBlock { };
+class ICE_UTIL_API EndBlock
+{
+};
extern ICE_UTIL_API EndBlock eb;
template<>
@@ -203,12 +210,13 @@ operator<<(XMLOutput& o, const Separator&)
return o;
}
+// TODO: Not performance critical, does not need to be inlined.
class ICE_UTIL_API StartElement
{
public:
- StartElement(const std::string& name)
- : _name(name)
+ StartElement(const std::string& name) :
+ _name(name)
{
}
@@ -216,7 +224,10 @@ public:
{
}
- const std::string& getName() const { return _name; }
+ const std::string& getName() const
+ {
+ return _name;
+ }
private: