Loading...
Searching...
No Matches
trajectoryFileFactory.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_FORMAT_TRAJECTORYFILEFACTORY_H
#define BALL_FORMAT_TRAJECTORYFILEFACTORY_H
#ifndef BALL_SYSTEM_FILE_H
# include <BALL/SYSTEM/file.h>
#endif
namespace BALL
{
class String;
class TrajectoryFile;
class BALL_EXPORT TrajectoryFileFactory
{
public:
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);
private:
static TrajectoryFile* detectFormat(const String& name);
};
}
#endif // BALL_FORMAT_TRAJECTORYFILEFACTORY_H
BALL_EXPORT
#define BALL_EXPORT
Definition COMMON/global.h:50
BALL::File::OpenMode
std::ios::openmode OpenMode
Definition file.h:165
BALL::String
Definition string.h:57
BALL::TrajectoryFileFactory
Definition trajectoryFileFactory.h:23
BALL::TrajectoryFileFactory::isFileExtensionSupported
static bool isFileExtensionSupported(String filename)
BALL::TrajectoryFileFactory::open
static TrajectoryFile * open(const String &name, File::OpenMode open_mode, TrajectoryFile *default_format_file)
BALL::TrajectoryFileFactory::open
static TrajectoryFile * open(const String &name, File::OpenMode open_mode, String default_format)
BALL::TrajectoryFileFactory::getSupportedFormats
static String getSupportedFormats()
BALL::TrajectoryFileFactory::open
static TrajectoryFile * open(const String &name, File::OpenMode open_mode=std::ios::in)
BALL::TrajectoryFile
Definition trajectoryFile.h:30
file.h
BALL
Definition constants.h:13