source: branches/nameserver/XML_IMPORT/IMP_TREE/xmlParser.hxx

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 "sax2Handler.hxx"
5
6class StrX {
7private :
8    char*   fLocalForm;
9
10public :
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
26inline ostream& operator<<(ostream& target, const StrX& toDump) {
27    target << toDump.localForm();
28    return target;
29}
30
Note: See TracBrowser for help on using the repository browser.