BALL
1.4.79
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
BALL
FORMAT
molFileFactory.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_MOLFILEFACTORY_H
6
#define BALL_FORMAT_MOLFILEFACTORY_H
7
8
#ifndef BALL_SYSTEM_FILE_H
9
# include <
BALL/SYSTEM/file.h
>
10
#endif
11
12
namespace
BALL
13
{
14
15
class
String;
16
class
GenericMolFile;
17
23
class
BALL_EXPORT
MolFileFactory
24
{
25
public
:
39
static
String
getSupportedFormats();
40
42
static
bool
isFileExtensionSupported(
String
filename);
43
44
static
GenericMolFile
* open(
const
String
& name,
File::OpenMode
open_mode = std::ios::in);
45
47
static
GenericMolFile
* open(
const
String
& name,
File::OpenMode
open_mode,
String
default_format,
bool
forced =
false
);
48
50
static
GenericMolFile
* open(
const
String
& name,
File::OpenMode
open_mode,
GenericMolFile
* default_format_file);
51
52
53
54
private
:
55
57
static
GenericMolFile
* detectFormat(
const
String
& name);
58
};
59
60
}
61
62
#endif //BALL_FORMAT_MOLFILEFACTORY_H
63
BALL::String
Definition:
string.h:61
file.h
BALL::File::OpenMode
std::ios::openmode OpenMode
Definition:
file.h:168
BALL::GenericMolFile
Definition:
genericMolFile.h:56
BALL::MolFileFactory
Definition:
molFileFactory.h:23
BALL_EXPORT
#define BALL_EXPORT
Definition:
COMMON/global.h:50
Generated by
1.8.7