OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ippl
src
DataSource
StringDataSource.hpp
Go to the documentation of this file.
1
// -*- C++ -*-
2
/***************************************************************************
3
*
4
* The IPPL Framework
5
*
6
* This program was prepared by PSI.
7
* All rights in the program are reserved by PSI.
8
* Neither PSI nor the author(s)
9
* makes any warranty, express or implied, or assumes any liability or
10
* responsibility for the use of this software
11
*
12
* Visit www.amas.web.psi for more details
13
*
14
***************************************************************************/
15
16
// -*- C++ -*-
17
/***************************************************************************
18
*
19
* The IPPL Framework
20
*
21
*
22
* Visit http://people.web.psi.ch/adelmann/ for more details
23
*
24
***************************************************************************/
25
26
// include files
27
#include "
DataSource/DataSourceObject.h
"
28
#include "
DataSource/DataConnect.h
"
29
#include
30
32
// a virtual function which is called by this base class to get a
33
// specific instance of DataSourceObject based on the type of data
34
// and the connection method (the argument to the call).
35
template
<
class
T>
36
DataSourceObject
*
StringDataSource<T>::createDataSourceObject
(
const
char
*nm,
37
DataConnect
*dc,
38
int
tm) {
39
40
41
42
// get the connection method name, and make a string out of it
43
std::string method(dc->
DSID
());
44
45
DataSourceObject
*dso = 0;
46
if
(method ==
"file"
) {
47
// create a DataSourceObject for this FILE which will connect to
48
// a file
49
}
50
51
// make a default connection is nothing has been found
52
if
(dso == 0)
53
dso =
new
DataSourceObject
;
54
55
return
dso;
56
}
57
58
59
/***************************************************************************
60
* $RCSfile: StringDataSource.cpp,v $ $Author: adelmann $
61
* $Revision: 1.1.1.1 $ $Date: 2003/01/23 07:40:25 $
62
* IPPL_VERSION_ID: $Id: StringDataSource.cpp,v 1.1.1.1 2003/01/23 07:40:25 adelmann Exp $
63
***************************************************************************/
DataConnect.h
DataSourceObject
Definition:
DataSourceObject.h:53
DataSourceObject.h
DataConnect::DSID
const char * DSID() const
Definition:
DataConnect.h:55
DataConnect
Definition:
DataConnect.h:32
StringDataSource::createDataSourceObject
virtual DataSourceObject * createDataSourceObject(const char *, DataConnect *, int)
Definition:
StringDataSource.hpp:36
Generated on Sat Jan 4 2020 14:47:34 for OPAL (Object Oriented Parallel Accelerator Library) by
1.8.5