BALL
1.4.79
|
#include <BALL/FORMAT/trajectoryFileFactory.h>
Static Public Member Functions | |
static TrajectoryFile * | open (const String &name, File::OpenMode open_mode=std::ios::in) |
static TrajectoryFile * | open (const String &name, File::OpenMode open_mode, String default_format) |
static TrajectoryFile * | open (const String &name, File::OpenMode open_mode, TrajectoryFile *default_format_file) |
static String | getSupportedFormats () |
static bool | isFileExtensionSupported (String filename) |
This class offers a factory method that given a path to a trajectory file determines the file type based on the file extension and returns a pointer to an appropriate subclass of TrajectoryFile
Definition at line 22 of file trajectoryFileFactory.h.
|
static |
Return a comma-separated string containing the file-extensions that are supported by TrajectoryFileFactory
Return true if the extension of the specified filename is supported; otherwise return false.
|
static |
Open a file. This method tries to determine the filetype based on the file extension of name and returns a pointer to an object of the appropriate subclass of TrajectoryFile if available. If the file should be opened in read-mode and the extension is unknown or the file does not have an extension, we try to automatically detect the format. If the detection fails, NULL is returned.
name | the path to the requested molecule file |
|
static |
Open a file. When trying to open a file in write-mode, this function can be used to pass along a desired default-format. If the given filename does not have a supported extension, the specified default format will be used.
|
static |
Open a file. When trying to open a file in write-mode, this function can be used to pass along a desired default-format. If the given filename does not have a supported extension, the format of 'default_format_file' will be used.