c843713451fae3916191777dd283528713841fa7
10 Store
* importDocument(std::istream
&is
) {
11 const INTEGER docTag
= 0x6F4F4443;
12 const INTEGER docVersion
= 0;
14 INTEGER tag
= r
.readInt();
16 INTEGER version
= r
.readInt();
17 if (version
!= docVersion
) {
20 Store
*s
= r
.readStore();
27 int main(int argc
, char *argv
[]) {
31 std::ifstream
in(argv
[1], std::ios::in
| std::ios::binary
);
32 odc::Store
* s
= odc::importDocument(in
);
33 std::cout
<< s
->toString() << std::endl
;
34 std::cout
<< in
.tellg() << " " << in
.eof() << std::endl
;
37 odc::ContainerModel(0).getTypePath(&path
);
38 std::cout
<< path
.toString() << std::endl
;