Cambridge SMT System
main.hpp
Go to the documentation of this file.
1
#pragma once
2
3
4
namespace
ucam
{
5
namespace
util {
6
7
struct
MainClass
{
8
typedef
util::RegistryPO
RegistryPO
;
9
boost::scoped_ptr<RegistryPO>
rg_
;
10
const
char
**
argv_
;
11
MainClass
(
int
argc,
const
char
*argv[])
12
:argv_(argv)
13
{
14
rg_.reset(
new
RegistryPO
(argc,argv));
15
util::initLogger
( argc, argv );
16
FORCELINFO
( argv[0] <<
" starts!"
);
17
FORCELINFO
( rg_->dump (
"CONFIG parameters:\n====================="
18
,
"====================="
) );
19
20
}
21
22
// To be implemented by each tool;
23
void
run
();
24
25
~MainClass
() {
26
FORCELINFO
( argv_[0] <<
" ends!"
);
27
}
28
29
};
30
31
}}
// end namespaces
32
41
int
main
(
int
argc,
const
char
*argv[] ) {
42
(
ucam::util::MainClass
(argc,argv).
run
());
43
return
0;
44
}
45
46
47
ucam::util::MainClass::RegistryPO
util::RegistryPO RegistryPO
Definition:
main.hpp:8
ucam::util::RegistryPO
Definition:
registrypo.hpp:95
ucam::util::initLogger
void initLogger(int argc, const char *argv[])
Inits logger, parses param options checking for –logger.verbose.
Definition:
logger.boost_log.hpp:55
FORCELINFO
#define FORCELINFO(msg)
Definition:
logger.boost_log.hpp:79
ucam::util::MainClass::run
void run()
Include all necessary headers here.
Definition:
applylm.main.cpp:48
main
int main(int argc, const char *argv[])
Main function.
Definition:
main.hpp:41
ucam::util::MainClass::MainClass
MainClass(int argc, const char *argv[])
Definition:
main.hpp:11
ucam::util::MainClass::argv_
const char ** argv_
Definition:
main.hpp:10
ucam::util::MainClass::rg_
boost::scoped_ptr< RegistryPO > rg_
Definition:
main.hpp:9
ucam::util::MainClass::~MainClass
~MainClass()
Definition:
main.hpp:25
ucam::util::MainClass
Definition:
main.hpp:7
ucam
Definition:
bleu.hpp:14
ucam-smt
cpp
include
main.hpp
Generated on Wed May 25 2016 10:26:01 for Cambridge SMT System by
1.8.11