]> SALOME platform Git repositories - modules/yacs.git/blob - src/runtime/Test/TestComponent.hxx
Salome HOME
copy tag mergefrom_BR_V0_1_CC_Salome_04oct07
[modules/yacs.git] / src / runtime / Test / TestComponent.hxx
1 #ifndef TESTCOMPONENT_HXX_
2 #define TESTCOMPONENT_HXX_
3
4
5 #include "Any.hxx"
6 #include <exception>
7
8 struct returnInfo {
9         int code;
10         std::string message;
11 };
12
13 class TestComponent {
14
15 public :
16         
17         double f(double c);
18         double g(int n, double x);
19         returnInfo info;
20 };
21
22 extern "C" void * __init();
23 extern "C" void __terminate(void **pObj);
24 extern "C" void __ping();
25 extern "C" void __run(void *vObj, const char *service, int nIn, int nOut, 
26                               YACS::ENGINE::Any **In, YACS::ENGINE::Any **Out, returnInfo *r);
27
28 #endif /*TESTCOMPONENT_HXX_*/