Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
wire-cell-build
gen
test
test_deposource.cxx
Go to the documentation of this file.
1
#include "
WireCellUtil/PluginManager.h
"
2
#include "
WireCellUtil/NamedFactory.h
"
3
#include "
WireCellIface/IDepoSource.h
"
4
#include "
WireCellIface/IConfigurable.h
"
5
#include "
WireCellUtil/Testing.h
"
6
#include "
WireCellUtil/Type.h
"
7
8
using namespace
std
;
9
using namespace
WireCell
;
10
11
int
main
()
12
{
13
PluginManager
&
pm
=
PluginManager::instance
();
14
pm.
add
(
"WireCellGen"
);
15
16
{
17
auto
icfg = Factory::lookup_tn<IConfigurable>(
"TrackDepos"
);
18
auto
cfg
= icfg->default_configuration();
19
icfg->configure(cfg);
20
}
21
22
auto
ds
= Factory::find_tn<IDepoSource>(
"TrackDepos"
);
23
cerr <<
"TrackDepos is type: "
<<
type
(
ds
) <<
endl
;
24
25
Assert
(
ds
);
26
27
IDepo::pointer
depo;
28
bool
ok = (*ds)(depo);
29
30
Assert
(ok);
31
32
return
0;
33
}
NamedFactory.h
lariov::DataSource::ds
ds
Definition:
IOVDataConstants.h:15
Type.h
instance
const std::string instance
Definition:
BlipMaker_module.cc:27
std
STL namespace.
IConfigurable.h
main
int main()
Definition:
test_deposource.cxx:11
dbjson.cfg
cfg
Definition:
dbjson.py:29
IDepoSource.h
Assert
#define Assert
Definition:
Testing.h:7
Testing.h
WireCell
Definition:
Main.h:22
PluginManager.h
type
static QCString type
Definition:
declinfo.cpp:672
WireCell::PluginManager::add
Plugin * add(const std::string &plugin_name, const std::string &libname="")
Add a plugin. If libname is not given, try to derive it.
Definition:
PluginManager.cxx:32
pointer
const GenericPointer< typename T::ValueType > & pointer
Definition:
pointer.h:1124
ResimTags.pm
pm
Definition:
ResimTags.py:94
endl
QTextStream & endl(QTextStream &s)
Definition:
qtextstream.cpp:2030
WireCell::PluginManager
Definition:
PluginManager.h:32
Generated by
1.8.11