DataSetTypePersistence.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 DataSetTypePersistence.cpp
22 
23  \brief Utility functions to register the DataSetTypePersistence class into the Google JavaScript V8 engine.
24  */
25 
26 // TerraLib
27 #include "../../../../dataaccess/dataset/DataSetTypePersistence.h"
28 #include "../../common/Utils.h"
29 #include "DataAccess.h"
30 
31 // Boost
32 #include <boost/cstdint.hpp>
33 
34 
35 ::v8::Handle<::v8::Value> DataSetTypePersistence_Create(const ::v8::Arguments& args)
36 {
37  return ::v8::Undefined();
38 }
39 
40 ::v8::Handle<::v8::Value> DataSetTypePersistence_Remove(const ::v8::Arguments& args)
41 {
42  return ::v8::Undefined();
43 }
44 
45 ::v8::Handle<::v8::Value> DataSetTypePersistence_Drop(const ::v8::Arguments& args)
46 {
47  return ::v8::Undefined();
48 }
49 
50 ::v8::Handle<::v8::Value> DataSetTypePersistence_Rename(const ::v8::Arguments& args)
51 {
52  return ::v8::Undefined();
53 }
54 
55 ::v8::Handle<::v8::Value> DataSetTypePersistence_Add(const ::v8::Arguments& args)
56 {
57  return ::v8::Undefined();
58 }
59 
60 ::v8::Handle<::v8::Value> DataSetTypePersistence_Update(const ::v8::Arguments& args)
61 {
62  return ::v8::Undefined();
63 }
64 
65 static ::v8::Persistent<::v8::FunctionTemplate> sg_datasettypepersistence_template;
66 
67 ::v8::Persistent<::v8::FunctionTemplate>& te::v8::jsi::GetDataSetTypePersistenceTemplate()
68 {
70  {
71  ::v8::Local<::v8::FunctionTemplate> result = ::v8::FunctionTemplate::New();
72  ::v8::Handle<::v8::ObjectTemplate> prototype = result->PrototypeTemplate();
73 
74  prototype->Set(::v8::String::NewSymbol("create"), ::v8::FunctionTemplate::New(DataSetTypePersistence_Create));
75  prototype->Set(::v8::String::NewSymbol("drop"), ::v8::FunctionTemplate::New(DataSetTypePersistence_Drop));
76  prototype->Set(::v8::String::NewSymbol("rename"), ::v8::FunctionTemplate::New(DataSetTypePersistence_Rename));
77  prototype->Set(::v8::String::NewSymbol("add"), ::v8::FunctionTemplate::New(DataSetTypePersistence_Add));
78  prototype->Set(::v8::String::NewSymbol("update"), ::v8::FunctionTemplate::New(DataSetTypePersistence_Update));
79 
80  sg_datasettypepersistence_template = ::v8::Persistent<::v8::FunctionTemplate>::New(result);
81  }
82 
84 }
::v8::Handle<::v8::Value > DataSetTypePersistence_Rename(const ::v8::Arguments &args)
::v8::Persistent<::v8::FunctionTemplate > & GetDataSetTypePersistenceTemplate()
It returns a reference to the persistent template of a DataSetTypePersistence object.
static::v8::Persistent<::v8::FunctionTemplate > sg_datasettypepersistence_template
::v8::Handle<::v8::Value > DataSetTypePersistence_Remove(const ::v8::Arguments &args)
JavaScript exporting routine for the TerraLib Data Access module.
::v8::Handle<::v8::Value > DataSetTypePersistence_Create(const ::v8::Arguments &args)
::v8::Handle<::v8::Value > DataSetTypePersistence_Drop(const ::v8::Arguments &args)
::v8::Handle<::v8::Value > DataSetTypePersistence_Add(const ::v8::Arguments &args)
::v8::Handle<::v8::Value > DataSetTypePersistence_Update(const ::v8::Arguments &args)