Class to automatically determine the file type of a reflection file. More...
#include <filetype.hh>
Public Types | |
| enum | FileTypeCode { NOTSET, ABSENT, UNKNOWN, MTZ, SCA_MERGED, SCA_UNMERGED, SHELX, SAINT, XDS_INTEGRATE, XDS_ASCII } |
Reflection file type. | |
Public Member Functions | |
| ReflectionFileType (const std::string &fileName) | |
| Constructor: try to determine file type, close file after testing. | |
| void | SetTypeCode (const FileTypeCode &code) |
| Set type code. | |
| void | SetType (const std::string &filetypename) |
| Set type as "MTZ", "XDS" or "SCA". | |
| FileTypeCode | FileType () const |
| return file type code | |
| bool | IsTypeMTZ () const |
| true is file is MTZ | |
| bool | IsTypeXDS () const |
| true is file is XDS | |
| bool | IsTypeSCA () const |
| true is file is SCA | |
| bool | IsTypeSHELX () const |
| true is file is SHELX | |
| bool | IsTypeSAINT () const |
| true is file is SAINT | |
| bool | IsTypeSSS () const |
| true is file is SCA, SHELX or SAINT | |
| int | Unmerged () const |
| +1 unmerged, -1 merged, 0 unknown | |
| std::string | format () const |
| return formatted file type | |
Class to automatically determine the file type of a reflection file.
| bool ReflectionFileType::IsTypeSSS | ( | ) | const |
true is file is SCA, SHELX or SAINT
true is file is SCA, Shelx or Saint
| void ReflectionFileType::SetType | ( | const std::string & | filetypename | ) |
Set type as "MTZ", "XDS" or "SCA".
Constructor as "MTZ", "XDS" or "SCA".
1.6.3