Fixed #265: put CIF at the end of the detection chain

The CIF format is kind of fuzzy and supports a high
degree of syntactic freedom. Hence the format detection
is not quite reliable. Do CIF as last resort.
This commit is contained in:
Matthias Koefferlein 2019-05-10 23:10:14 +02:00
parent 08d1cff797
commit bfe5c7c2b9
2 changed files with 4 additions and 2 deletions

View File

@ -185,7 +185,9 @@ public:
}
};
static tl::RegisteredClass<db::StreamFormatDeclaration> reader_decl (new CIFFormatDeclaration (), 100, "CIF");
// NOTE: Because CIF has such a high degree of syntactic freedom, the detection is somewhat
// fuzzy: do CIF at the very end of the detection chain
static tl::RegisteredClass<db::StreamFormatDeclaration> reader_decl (new CIFFormatDeclaration (), 2100, "CIF");
// provide a symbol to force linking against
int force_link_CIF = 0;

View File

@ -166,7 +166,7 @@ public:
}
};
static tl::RegisteredClass<db::StreamFormatDeclaration> reader_decl (new DXFFormatDeclaration (), 100, "DXF");
static tl::RegisteredClass<db::StreamFormatDeclaration> reader_decl (new DXFFormatDeclaration (), 2000, "DXF");
// provide a symbol to force linking against
int force_link_DXF = 0;