X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=odcread.cc;h=6d506685882012eef28356b70f36ef21e8fd51cb;hb=51b3593cbfb33c1d7b4b588f3841c3c405e3a215;hp=32fcd6b25471d2b368f16e05c10cf00105f0a77c;hpb=121a58d72f3b5e537007072f93397f6e6661fb90;p=odcread.git diff --git a/odcread.cc b/odcread.cc index 32fcd6b..6d50668 100644 --- a/odcread.cc +++ b/odcread.cc @@ -25,9 +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 << 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; }