DEADSOFTWARE

Dump TextModel ShortChar contents to std::cout (appear a little out of order)
[odcread.git] / odcread.cc
index 32fcd6b25471d2b368f16e05c10cf00105f0a77c..27117ddeab85d2240d89bd82ce6a3c82d6ae7577 100644 (file)
@@ -25,9 +25,16 @@ 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 << 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;
 }