author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Mon, 25 Jan 2016 16:35:43 +0000 | |
changeset 298 | 9696f76605bd |
parent 296 | ea3dbc023c80 |
permissions | -rw-r--r-- |
78 | 1 |
/* |
2 |
* StxXercesInputSource.cpp |
|
3 |
* |
|
4 |
* Created on: Dec 8, 2008 |
|
5 |
* Author: honza |
|
6 |
*/ |
|
7 |
||
8 |
#include "StxXercesInputStream.hpp" |
|
9 |
#include "StxXercesInputSource.hpp" |
|
10 |
||
91
760f18117fee
Added PSVI handling to XercesCXMLParser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
78
diff
changeset
|
11 |
OBJ xerces_stx_StxInputSource_new(OBJ st_stream) { |
78 | 12 |
return __MKEXTERNALADDRESS_CPP(new StxXercesInputSource(st_stream)); |
13 |
} |
|
14 |
||
15 |
void xerces_stx_StxInputSource_delete(OBJ stx_input_source_address) { |
|
91
760f18117fee
Added PSVI handling to XercesCXMLParser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
78
diff
changeset
|
16 |
|
78 | 17 |
delete (StxXercesInputSource*)__externalAddressVal(stx_input_source_address); |
18 |
} |
|
19 |
||
20 |
||
21 |
||
22 |
||
23 |
StxXercesInputSource::StxXercesInputSource(OBJ stx_stream) { |
|
24 |
input_stream = new StxXercesInputStream(stx_stream); |
|
25 |
} |
|
26 |
||
27 |
StxXercesInputSource::~StxXercesInputSource() { |
|
28 |
//delete input_stream; |
|
29 |
input_stream = 0; |
|
30 |
} |
|
31 |
||
91
760f18117fee
Added PSVI handling to XercesCXMLParser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
78
diff
changeset
|
32 |
BinInputStream* StxXercesInputSource::makeStream() const { |
78 | 33 |
return input_stream; |
34 |
} |