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