BALL 1.5.0
trajectoryFileFactory.h
Go to the documentation of this file.
1// -*- Mode: C++; tab-width: 2; -*-
2// vi: set ts=2:
3//
4
5#ifndef BALL_FORMAT_TRAJECTORYFILEFACTORY_H
6#define BALL_FORMAT_TRAJECTORYFILEFACTORY_H
7
8#ifndef BALL_SYSTEM_FILE_H
9# include <BALL/SYSTEM/file.h>
10#endif
11
12namespace BALL
13{
14 class String;
15 class TrajectoryFile;
16
23 {
24 public:
36 static TrajectoryFile* open(const String& name, File::OpenMode open_mode = std::ios::in);
37
42 static TrajectoryFile* open(const String& name, File::OpenMode open_mode, String default_format);
43
48 static TrajectoryFile* open(const String& name, File::OpenMode open_mode, TrajectoryFile* default_format_file);
49
52
54 static bool isFileExtensionSupported(String filename);
55
56 private:
57
59 static TrajectoryFile* detectFormat(const String& name);
60 };
61
62}
63
64#endif // BALL_FORMAT_TRAJECTORYFILEFACTORY_H
Definition: constants.h:13
static bool isFileExtensionSupported(String filename)
static TrajectoryFile * open(const String &name, File::OpenMode open_mode, TrajectoryFile *default_format_file)
static TrajectoryFile * open(const String &name, File::OpenMode open_mode, String default_format)
static String getSupportedFormats()
static TrajectoryFile * open(const String &name, File::OpenMode open_mode=std::ios::in)
std::ios::openmode OpenMode
Definition: file.h:165
#define BALL_EXPORT
Definition: COMMON/global.h:50