DEADSOFTWARE

Add type handling (disabled until StdTextModel.internalize is implemented)
[odcread.git] / odcread.cc
index 32fcd6b25471d2b368f16e05c10cf00105f0a77c..e049bb071e7bd90a263bbca7043cb66c930123a2 100644 (file)
@@ -25,9 +25,14 @@ 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->toString() << std::endl;
        std::cout << in.tellg() << " " << in.eof() << std::endl;
+
+       std::cout << odc::ContainerModel(0).getTypePath().toString() << std::endl;
        return 0;
 }