Last change
on this file was
1818,
checked in by yadhu, 21 years ago
|
To import xml format trees in to ARB Database.
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
581 bytes
|
Line | |
---|
1 | #include <string.h> |
---|
2 | #include <fstream.h> |
---|
3 | #include <stdlib.h> |
---|
4 | #include "MySAXHandler.hxx" |
---|
5 | |
---|
6 | class StrX |
---|
7 | { |
---|
8 | private : |
---|
9 | char* fLocalForm; |
---|
10 | |
---|
11 | public : |
---|
12 | StrX(const XMLCh* const toTranscode) { |
---|
13 | // Call the private transcoding method |
---|
14 | fLocalForm = XMLString::transcode(toTranscode); |
---|
15 | } |
---|
16 | |
---|
17 | ~StrX() { |
---|
18 | XMLString::release(&fLocalForm); |
---|
19 | } |
---|
20 | |
---|
21 | // Getter methods |
---|
22 | const char* localForm() const { |
---|
23 | return fLocalForm; |
---|
24 | } |
---|
25 | }; |
---|
26 | |
---|
27 | inline ostream& operator<<(ostream& target, const StrX& toDump) |
---|
28 | { |
---|
29 | target << toDump.localForm(); |
---|
30 | return target; |
---|
31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.