]> SALOME platform Git repositories - modules/yacs.git/blob - src/runtime/Test/TestComponent.hxx
Salome HOME
c89652fdf61a201f8b477c841ca5928f40707190
[modules/yacs.git] / src / runtime / Test / TestComponent.hxx
1 //  Copyright (C) 2006-2008  CEA/DEN, EDF R&D
2 //
3 //  This library is free software; you can redistribute it and/or
4 //  modify it under the terms of the GNU Lesser General Public
5 //  License as published by the Free Software Foundation; either
6 //  version 2.1 of the License.
7 //
8 //  This library is distributed in the hope that it will be useful,
9 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
10 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 //  Lesser General Public License for more details.
12 //
13 //  You should have received a copy of the GNU Lesser General Public
14 //  License along with this library; if not, write to the Free Software
15 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 #ifndef TESTCOMPONENT_HXX_
20 #define TESTCOMPONENT_HXX_
21
22
23 #include "Any.hxx"
24 #include <exception>
25
26 struct returnInfo {
27         int code;
28         std::string message;
29 };
30
31 class TestComponent {
32
33 public :
34         
35         double f(double c);
36         double g(int n, double x);
37         returnInfo info;
38 };
39
40 extern "C" void * __init();
41 extern "C" void __terminate(void **pObj);
42 extern "C" void __ping();
43 extern "C" void __run(void *vObj, const char *service, int nIn, int nOut, 
44                               YACS::ENGINE::Any **In, YACS::ENGINE::Any **Out, returnInfo *r);
45
46 #endif /*TESTCOMPONENT_HXX_*/