ReflectionFileType Class Reference

Class to automatically determine the file type of a reflection file. More...

#include <filetype.hh>

List of all members.

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

Detailed Description

Class to automatically determine the file type of a reflection file.


Member Function Documentation

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".


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Friends
Generated on Tue Mar 1 11:22:28 2011 for Pointless by  doxygen 1.6.3