15 if (!filename.empty()) {
17 return descriptor.
isXML();
34 const std::map<std::string, std::set<std::string>> &allEntries) {
38 (allEntries.count(
"NXcylindrical_geometry") == 1 || allEntries.count(
"NXoff_geometry") == 1 ||
39 allEntries.count(
"NXtransformations") == 1);
Defines a wrapper around an open file.
static bool isAscii(const std::string &filename, const size_t nbytes=256)
Returns true if the file is considered ascii.
bool isXML() const
Returns true if the descriptor is looking at an XML file.
Defines a wrapper around a file whose internal structure can be accessed using the NeXus API.
bool classTypeExists(const std::string &classType) const
Query if a given type exists somewhere in the file.
static bool isReadable(const std::string &filename, const Version version=AnyVersion)
Returns true if the file is considered to store data in a hierarchy.
bool isIDF(const std::string &filename)
Determine if the Geometry file type is IDF.
const std::vector< std::string > validExtensions()
List allowed file extensions for geometry.
bool isNexus(const std::string &filename)
Determine if the Geometry file type is Nexus.