Ticket #85: example.cpp

File example.cpp, 568 bytes (added by landmark, 10 years ago)

Implementation of example service (C++)

Line 
1// Zoo header files
2#include "service.h"
3                         
4extern "C" {
5
6        #ifdef WIN32
7    __declspec(dllexport)
8    #endif
9        int Example( maps*& conf, maps*& inputs, maps*& outputs ) {
10               
11                maps* tmp;     
12
13                tmp = getMaps( inputs, "optional_literal" );
14                if (tmp != NULL) dumpMapsToFile( tmp, "tmp1.txt");
15               
16                tmp = getMaps( inputs, "optional_complex_type" );
17                if (tmp != NULL) dumpMapsToFile( tmp, "tmp2.txt");
18               
19                tmp = getMaps( inputs, "mandatory_literal" );
20                if ( tmp != NULL ) dumpMapsToFile( tmp, "tmp3.txt");
21               
22                return SERVICE_FAILED;
23
24        }
25 
26}

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png