X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=odcread.cc;h=6d506685882012eef28356b70f36ef21e8fd51cb;hb=bfa2551119497089b987c2bce3e2f512f9e2130f;hp=77a26947c5da21f3617a32dd341ff50dd68c2009;hpb=4618e826a4ebe5e60e1d2c419fca7da71657bf9b;p=odcread.git diff --git a/odcread.cc b/odcread.cc index 77a2694..6d50668 100644 --- a/odcread.cc +++ b/odcread.cc @@ -1,5 +1,6 @@ #include #include +#include #include #include @@ -24,8 +25,18 @@ namespace odc { } int main(int argc, char *argv[]) { + if (argc < 2) { + return 1; + } std::ifstream in(argv[1], std::ios::in | std::ios::binary); odc::Store* s = odc::importDocument(in); - std::cout << s << std::endl; + std::cout << std::endl << std::endl; + + std::cout << s->toString() << std::endl; + std::cout << in.tellg() << " " << in.eof() << std::endl; + + odc::TypePath path; + odc::ContainerModel(0).getTypePath(&path); + std::cout << path.toString() << std::endl; return 0; }