OpenModules.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 OpenModules.cpp
22 
23  \brief The main entry function for registering TerraLib API in a V8 environment.
24  */
25 
26 // TerraLib
27 #include "../dataaccess/DataAccess.h"
28 #include "../geometry/Geometry.h"
29 #include "OpenModules.h"
30 
31 void te::v8::jsi::RegisterModule(::v8::Local<::v8::Object>& global)
32 {
33 // TODO: checar a necessidade de inicializar os plugins como feito em Lua e Java
34 
35 // Geometry
36  RegisterCoord2D(global);
37  RegisterEnvelope(global);
39  RegisterGeometry(global);
41  RegisterLineString(global);
42  RegisterLinearRing(global);
44  RegisterMultiPoint(global);
45  RegisterMultiPolygon(global);
46  RegisterPoint(global);
47  RegisterPolygon(global);
48 
49 // DataAccess
50  RegisterDataSetType(global);
53  RegisterDataSource(global);
54 }
55 
The main entry function for registering TerraLib API in a V8 environment.
void RegisterDataSetType(::v8::Local<::v8::Object > &global)
It registers the DataSetType class.
void RegisterDataSourceFactory(::v8::Local<::v8::Object > &global)
It registers the DataSourceFactory class.
void RegisterMultiPoint(::v8::Local<::v8::Object > &global)
It register the MultiPoint class.
void RegisterPoint(::v8::Local<::v8::Object > &global)
It register the Point class.
void RegisterCoord2D(::v8::Local<::v8::Object > &global)
It register the Coord2D class.
Definition: Coord2D.cpp:133
TEV8JSIEXPORT void RegisterModule(::v8::Local<::v8::Object > &global)
It register the Module class.
Definition: OpenModules.cpp:31
void RegisterDataSource(::v8::Local<::v8::Object > &global)
It registers the DataSource class.
void RegisterGeometry(::v8::Local<::v8::Object > &global)
It register a singleton for the Geometry class.
void RegisterLinearRing(::v8::Local<::v8::Object > &global)
It register the LinearRing class.
void RegisterMultiPolygon(::v8::Local<::v8::Object > &global)
It register the MultiPolygon class.
void RegisterPolygon(::v8::Local<::v8::Object > &global)
It register the Polygon class.
void RegisterMultiLineString(::v8::Local<::v8::Object > &global)
It register the MultiLineString class.
void RegisterLineString(::v8::Local<::v8::Object > &global)
It register the LineString class.
void RegisterGeometryFactory(::v8::Local<::v8::Object > &global)
It registers the GeometryFactory class.
void RegisterEnvelope(::v8::Local<::v8::Object > &global)
It register the Envelope class.
void RegisterDataSourceManager(::v8::Local<::v8::Object > &global)
It registers the GeometryFactory class.
void RegisterGeometryCollection(::v8::Local<::v8::Object > &global)
It register the GeometryCollection class.