77a26947c5da21f3617a32dd341ff50dd68c2009
9 Store
* importDocument(std::istream
&is
) {
10 const INTEGER docTag
= 0x6F4F4443;
11 const INTEGER docVersion
= 0;
13 INTEGER tag
= r
.readInt();
15 INTEGER version
= r
.readInt();
16 if (version
!= docVersion
) {
19 Store
*s
= r
.readStore();
26 int main(int argc
, char *argv
[]) {
27 std::ifstream
in(argv
[1], std::ios::in
| std::ios::binary
);
28 odc::Store
* s
= odc::importDocument(in
);
29 std::cout
<< s
<< std::endl
;