summaryrefslogtreecommitdiff
path: root/TAO/CIAO/CCF/CCF/CodeGenerationKit/IndentationIDL.hpp
diff options
context:
space:
mode:
authorboris <boris@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-08-03 15:54:33 +0000
committerboris <boris@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-08-03 15:54:33 +0000
commitfddbecfd3b565bc6ae590de4cdf20e8cd99d9cb8 (patch)
tree6cd68b53d6db6b10268a826bb78efd67191cb6a7 /TAO/CIAO/CCF/CCF/CodeGenerationKit/IndentationIDL.hpp
parent6faca7a73dadbe06e0f998f14ebe5f93a1d96138 (diff)
downloadATCD-fddbecfd3b565bc6ae590de4cdf20e8cd99d9cb8.tar.gz
ChangeLogTag: Tue Aug 3 11:02:14 2004 Boris Kolpackov <boris@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/CIAO/CCF/CCF/CodeGenerationKit/IndentationIDL.hpp')
-rw-r--r--TAO/CIAO/CCF/CCF/CodeGenerationKit/IndentationIDL.hpp26
1 files changed, 22 insertions, 4 deletions
diff --git a/TAO/CIAO/CCF/CCF/CodeGenerationKit/IndentationIDL.hpp b/TAO/CIAO/CCF/CCF/CodeGenerationKit/IndentationIDL.hpp
index 3f428462745..1c620338206 100644
--- a/TAO/CIAO/CCF/CCF/CodeGenerationKit/IndentationIDL.hpp
+++ b/TAO/CIAO/CCF/CCF/CodeGenerationKit/IndentationIDL.hpp
@@ -11,10 +11,28 @@
namespace Indentation
{
- class IDL : public Buffer
+ template <typename C>
+ class IDL : public Buffer<C>
{
public:
- IDL (Buffer& out)
+ typedef
+ typename Buffer<C>::traits_type
+ traits_type;
+
+ typedef
+ typename Buffer<C>::char_type
+ char_type;
+
+ typedef
+ typename Buffer<C>::int_type
+ int_type;
+
+ typedef
+ typename Buffer<C>::EndOfStream
+ EndOfStream;
+
+ public:
+ IDL (Buffer<C>& out)
: out_ (out),
indentation_ (0),
spaces_ (2),
@@ -57,7 +75,7 @@ namespace Indentation
// Reduce multiple newlines to one.
while (hold_.size () > 1)
{
- Hold::reverse_iterator i = hold_.rbegin ();
+ typename Hold::reverse_iterator i = hold_.rbegin ();
if (*i == '\n' && *(i + 1) == '\n') hold_.pop_back ();
else break;
}
@@ -193,7 +211,7 @@ namespace Indentation
private:
- Buffer& out_;
+ Buffer<C>& out_;
unsigned long indentation_;
unsigned long spaces_;