Main Page
Modules
Namespaces
Classes
Files
File List
File Members
unittest/raster/main.cpp
Go to the documentation of this file.
1
/* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2
3
This file is part of the TerraLib - a Framework for building GIS enabled applications.
4
5
TerraLib is free software: you can redistribute it and/or modify
6
it under the terms of the GNU Lesser General Public License as published by
7
the Free Software Foundation, either version 3 of the License,
8
or (at your option) any later version.
9
10
TerraLib is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU Lesser General Public License for more details.
14
15
You should have received a copy of the GNU Lesser General Public License
16
along with TerraLib. See COPYING. If not, write to
17
TerraLib Team at <terralib-team@terralib.org>.
18
*/
19
20
/*!
21
\file terralib/unittest/raster/main.cpp
22
23
\brief Main file of test suit for the Raster Module.
24
*/
25
26
// TerraLib
27
#include <
terralib/raster_fw.h
>
28
#include <
terralib/common/Module.h
>
29
#include <
terralib/core/plugin.h
>
30
#include "
Config.h
"
31
#include "
LoadModules.h
"
32
33
// STL
34
#include <cstdlib>
35
36
// Boost
37
#define BOOST_TEST_NO_MAIN
38
#include <boost/test/unit_test.hpp>
39
40
bool
init_unit_test
()
41
{
42
return
true
;
43
}
44
45
int
main
(
int
argc,
char
*argv[])
46
{
47
/* Initialize Terralib platform */
48
TerraLib::getInstance
().
initialize
();
49
50
LoadModules
();
51
52
int
resultStatus = boost::unit_test::unit_test_main(
init_unit_test
, argc, argv);
53
54
/* Finalize TerraLib Plataform */
55
TerraLib::getInstance
().
finalize
();
56
57
return
resultStatus;
58
}
raster_fw.h
Forward declarations for the Raster module.
init_unit_test
bool init_unit_test()
Definition:
unittest/raster/main.cpp:40
plugin.h
Include files for Core Plugin Library.
TerraLib::finalize
void finalize()
It finalizes the TerraLib Platform.
Definition:
common/TerraLib.cpp:67
te::common::Singleton< TerraLib >::getInstance
static TerraLib & getInstance()
It returns a reference to the singleton instance.
LoadModules.h
TerraLib::initialize
void initialize()
It initializes the TerraLib Platform.
Definition:
common/TerraLib.cpp:34
Config.h
main
int main(int argc, char *argv[])
Definition:
unittest/raster/main.cpp:45
Module.h
This singleton defines an entry in the Platform for the TerraLib Common Runtime module.
LoadModules
void LoadModules()
Load terralib modules.
Definition:
attic/unittest/dataaccess/LoadModules.h:38
terralib5_src
unittest
raster
main.cpp
Generated on Wed Jun 6 2018 12:16:10 for TerraLib by
1.8.11