Loading...
Searching...
No Matches
molFileFactory.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_FORMAT_MOLFILEFACTORY_H
#define BALL_FORMAT_MOLFILEFACTORY_H
#ifndef BALL_SYSTEM_FILE_H
# include <BALL/SYSTEM/file.h>
#endif
namespace BALL
{
class String;
class GenericMolFile;
class BALL_EXPORT MolFileFactory
{
public:
static String getSupportedFormats();
static bool isFileExtensionSupported(String filename);
static GenericMolFile* open(const String& name, File::OpenMode open_mode = std::ios::in);
static GenericMolFile* open(const String& name, File::OpenMode open_mode, String default_format, bool forced = false);
static GenericMolFile* open(const String& name, File::OpenMode open_mode, GenericMolFile* default_format_file);
private:
static GenericMolFile* detectFormat(const String& name);
};
}
#endif //BALL_FORMAT_MOLFILEFACTORY_H
BALL_EXPORT
#define BALL_EXPORT
Definition COMMON/global.h:50
BALL::File::OpenMode
std::ios::openmode OpenMode
Definition file.h:165
BALL::GenericMolFile
Definition genericMolFile.h:58
BALL::MolFileFactory
Definition molFileFactory.h:24
BALL::MolFileFactory::open
static GenericMolFile * open(const String &name, File::OpenMode open_mode, String default_format, bool forced=false)
BALL::MolFileFactory::getSupportedFormats
static String getSupportedFormats()
BALL::MolFileFactory::isFileExtensionSupported
static bool isFileExtensionSupported(String filename)
BALL::MolFileFactory::open
static GenericMolFile * open(const String &name, File::OpenMode open_mode=std::ios::in)
BALL::MolFileFactory::open
static GenericMolFile * open(const String &name, File::OpenMode open_mode, GenericMolFile *default_format_file)
BALL::String
Definition string.h:57
file.h
BALL
Definition constants.h:13